X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fcore%2Fmount-setup.c;h=387030abfd6e7106a382a54e5d03c404e4b31c53;hp=73c2698ea3f4b946fb161d35e1217758ba460b03;hb=cf6a8911738fe2635a5210769d5348b05b166691;hpb=8552b17660033812080a11533bd0edce74401039 diff --git a/src/core/mount-setup.c b/src/core/mount-setup.c index 73c2698ea..387030abf 100644 --- a/src/core/mount-setup.c +++ b/src/core/mount-setup.c @@ -43,10 +43,7 @@ #include "virt.h" #include "efivars.h" #include "smack-util.h" - -#ifndef TTY_GID -#define TTY_GID 5 -#endif +#include "def.h" typedef enum MountMode { MNT_NONE = 0, @@ -188,7 +185,7 @@ static int mount_one(const MountPoint *p, bool relabel) { p->type, p->flags, p->options) < 0) { - log_full((p->mode & MNT_FATAL) ? LOG_ERR : LOG_DEBUG, "Failed to mount %s: %s", p->where, strerror(errno)); + log_full((p->mode & MNT_FATAL) ? LOG_ERR : LOG_DEBUG, "Failed to mount %s: %m", p->where); return (p->mode & MNT_FATAL) ? -errno : 0; }