]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
vpick: terminate tries output with newline
authordongshengyuan <545258830@qq.com>
Tue, 11 Aug 2026 06:41:41 +0000 (14:41 +0800)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 11 Aug 2026 18:02:33 +0000 (03:02 +0900)
tries should be line-oriented like the other --print= modes.
Terminate its counter output with a newline to avoid glued CLI output.

Before: output bytes were 2b 32 2d 33.
After: output bytes are 2b 32 2d 33 0a.

Follow-up for: 9e61ed11156d423dc171a3377119b39b1cc4a8d6

src/vpick/vpick-tool.c

index 8dd22e0ea28ae856f524b9467d0a6c76d18d8f60..6ce3ef944e3c284c93236b6e309f2f791d8d655b 100644 (file)
@@ -301,7 +301,7 @@ static int run(int argc, char *argv[]) {
                         if (result.tries_left == UINT_MAX)
                                 return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "No tries left/tries done information discovered.");
 
-                        printf("+%u-%u", result.tries_left, result.tries_done);
+                        printf("+%u-%u\n", result.tries_left, result.tries_done);
                         break;
 
                 case PRINT_ALL: {