aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2013-01-30 16:51:22 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2013-01-30 16:51:22 +0100
commit6e29d07417c84e69ed0fb375205ae4e62fa236f7 (patch)
tree75edfecc39a5666f4c2dbcfa46e675cfe72ab219
parent04ac6e03c3ae8302be2420cf73d70cf466791fa6 (diff)
downloadbusybox-w32-6e29d07417c84e69ed0fb375205ae4e62fa236f7.tar.gz
busybox-w32-6e29d07417c84e69ed0fb375205ae4e62fa236f7.tar.bz2
busybox-w32-6e29d07417c84e69ed0fb375205ae4e62fa236f7.zip
mdev: extend debug logging output
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--util-linux/mdev.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/util-linux/mdev.c b/util-linux/mdev.c
index 75de14ff1..52122dd63 100644
--- a/util-linux/mdev.c
+++ b/util-linux/mdev.c
@@ -661,6 +661,8 @@ static void make_device(char *device_name, char *path, int operation)
661 if (mknod(node_name, rule->mode | type, makedev(major, minor)) && errno != EEXIST) 661 if (mknod(node_name, rule->mode | type, makedev(major, minor)) && errno != EEXIST)
662 bb_perror_msg("can't create '%s'", node_name); 662 bb_perror_msg("can't create '%s'", node_name);
663 if (ENABLE_FEATURE_MDEV_CONF) { 663 if (ENABLE_FEATURE_MDEV_CONF) {
664 if (G.verbose)
665 bb_error_msg("chmod: %o chown: %u:%u", rule->mode, rule->ugid.uid, rule->ugid.gid);
664 chmod(node_name, rule->mode); 666 chmod(node_name, rule->mode);
665 chown(node_name, rule->ugid.uid, rule->ugid.gid); 667 chown(node_name, rule->ugid.uid, rule->ugid.gid);
666 } 668 }
@@ -923,7 +925,9 @@ int mdev_main(int argc UNUSED_PARAM, char **argv)
923 if (logfd >= 0) { 925 if (logfd >= 0) {
924 xmove_fd(logfd, STDERR_FILENO); 926 xmove_fd(logfd, STDERR_FILENO);
925 G.verbose = 1; 927 G.verbose = 1;
926 bb_error_msg("seq: %s action: %s", seq, action); 928 if (seq)
929 applet_name = xasprintf("%s[%s]", applet_name, seq);
930 bb_error_msg("action: %s", action);
927 } 931 }
928 } 932 }
929 933