diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2010-12-20 14:34:49 +0000 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2010-12-20 14:34:49 +0000 |
commit | 446e4a6a798ac9425adf8e7212b221b537b2a270 (patch) | |
tree | ada0a971d4012b3e3c135b3cf4fe3ddac4761a8f /lib/commands | |
parent | 952cd45167cd6c4e76ddd0998de5de29c732e100 (diff) | |
download | lvm2-446e4a6a798ac9425adf8e7212b221b537b2a270.tar.gz lvm2-446e4a6a798ac9425adf8e7212b221b537b2a270.tar.xz lvm2-446e4a6a798ac9425adf8e7212b221b537b2a270.zip |
Verbose log old_umask value
Use old_umask value and print its content through verbose log.
Diffstat (limited to 'lib/commands')
-rw-r--r-- | lib/commands/toolcontext.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/commands/toolcontext.c b/lib/commands/toolcontext.c index c5fc057c..c4da38af 100644 --- a/lib/commands/toolcontext.c +++ b/lib/commands/toolcontext.c @@ -213,7 +213,8 @@ static int _process_config(struct cmd_context *cmd) if ((old_umask = umask((mode_t) cmd->default_settings.umask)) != (mode_t) cmd->default_settings.umask) - log_verbose("Set umask to %04o", cmd->default_settings.umask); + log_verbose("Set umask from %04o to %04o", + old_umask, cmd->default_settings.umask); /* dev dir */ if (dm_snprintf(cmd->dev_dir, sizeof(cmd->dev_dir), "%s/", |