From: Martin Wilck <mwilck@xxxxxxxx> ... to avoid these messages being joined with the error message from the caller. Signed-off-by: Martin Wilck <mwilck@xxxxxxxx> --- kpartx/lopart.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/kpartx/lopart.c b/kpartx/lopart.c index fccb522..ba9f2c0 100644 --- a/kpartx/lopart.c +++ b/kpartx/lopart.c @@ -209,26 +209,26 @@ nothing_found: } if (!somedev) - fprintf(stderr, "mount: could not find any device /dev/loop#"); + fprintf(stderr, "mount: could not find any device /dev/loop#\n"); else if (!someloop) { if (loop_known == 1) fprintf(stderr, "mount: Could not find any loop device.\n" - " Maybe /dev/loop# has a wrong major number?"); + " Maybe /dev/loop# has a wrong major number?\n"); else if (loop_known == -1) fprintf(stderr, "mount: Could not find any loop device, and, according to %s,\n" " this kernel does not know about the loop device.\n" - " (If so, then recompile or `modprobe loop'.)", + " (If so, then recompile or `modprobe loop'.)\n", PROC_DEVICES); else fprintf(stderr, "mount: Could not find any loop device. Maybe this kernel does not know\n" " about the loop device (then recompile or `modprobe loop'), or\n" - " maybe /dev/loop# has the wrong major number?"); + " maybe /dev/loop# has the wrong major number?\n"); } else - fprintf(stderr, "mount: could not find any free loop device"); + fprintf(stderr, "mount: could not find any free loop device\n"); return NULL; } -- 2.33.1 -- dm-devel mailing list dm-devel@xxxxxxxxxx https://listman.redhat.com/mailman/listinfo/dm-devel