mirror of
https://github.com/sheumann/hush.git
synced 2024-12-25 03:32:18 +00:00
mdev: extend debug logging output
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
04ac6e03c3
commit
6e29d07417
@ -661,6 +661,8 @@ static void make_device(char *device_name, char *path, int operation)
|
|||||||
if (mknod(node_name, rule->mode | type, makedev(major, minor)) && errno != EEXIST)
|
if (mknod(node_name, rule->mode | type, makedev(major, minor)) && errno != EEXIST)
|
||||||
bb_perror_msg("can't create '%s'", node_name);
|
bb_perror_msg("can't create '%s'", node_name);
|
||||||
if (ENABLE_FEATURE_MDEV_CONF) {
|
if (ENABLE_FEATURE_MDEV_CONF) {
|
||||||
|
if (G.verbose)
|
||||||
|
bb_error_msg("chmod: %o chown: %u:%u", rule->mode, rule->ugid.uid, rule->ugid.gid);
|
||||||
chmod(node_name, rule->mode);
|
chmod(node_name, rule->mode);
|
||||||
chown(node_name, rule->ugid.uid, rule->ugid.gid);
|
chown(node_name, rule->ugid.uid, rule->ugid.gid);
|
||||||
}
|
}
|
||||||
@ -923,7 +925,9 @@ int mdev_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
if (logfd >= 0) {
|
if (logfd >= 0) {
|
||||||
xmove_fd(logfd, STDERR_FILENO);
|
xmove_fd(logfd, STDERR_FILENO);
|
||||||
G.verbose = 1;
|
G.verbose = 1;
|
||||||
bb_error_msg("seq: %s action: %s", seq, action);
|
if (seq)
|
||||||
|
applet_name = xasprintf("%s[%s]", applet_name, seq);
|
||||||
|
bb_error_msg("action: %s", action);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user