mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Quote path value in --filemap debug messages
Improves readability of debugging output when file paths contain whitespace.
This commit is contained in:
parent
7d8981dd3f
commit
9aa47f9768
@ -826,7 +826,7 @@ int main(int argc, char **argv)
|
||||
_setup_logging();
|
||||
|
||||
log_info("Starting dmfilemapd with fd=%d, group_id=" FMTu64 " "
|
||||
"mode=%s, path=%s", fm.fd, fm.group_id,
|
||||
"mode=%s, path=\"%s\"", fm.fd, fm.group_id,
|
||||
_mode_names[fm.mode], fm.path);
|
||||
|
||||
if (!_foreground && !_daemonise(&fm)) {
|
||||
|
@ -5116,7 +5116,7 @@ int dm_stats_start_filemapd(int fd, uint64_t group_id, const char *path,
|
||||
/* terminate args[argc] */
|
||||
args[argc] = NULL;
|
||||
|
||||
log_very_verbose("Spawning daemon as '%s %d " FMTu64 " %s %s %u %u'",
|
||||
log_very_verbose("Spawning daemon as '%s %d " FMTu64 " \"%s\" %s %u %u'",
|
||||
*args, fd, group_id, path, mode_str,
|
||||
foreground, verbose);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user