1
0
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:
Bryn M. Reeves 2023-08-31 17:08:21 +01:00 committed by Zdeněk Kabeláč
parent 7d8981dd3f
commit 9aa47f9768
2 changed files with 2 additions and 2 deletions

View File

@ -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)) {

View File

@ -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);