From e300e3515f9c002fe7695f37aaf0e7c0d462f373 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 24 May 2006 20:18:05 +0000 Subject: [PATCH] Enclose kernel command line arguments that contain spaces in quotes when printing. --- src/threads/init.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/threads/init.c b/src/threads/init.c index a624ef5..8af05ec 100644 --- a/src/threads/init.c +++ b/src/threads/init.c @@ -219,7 +219,10 @@ read_command_line (void) /* Print kernel command line. */ printf ("Kernel command line:"); for (i = 0; i < argc; i++) - printf (" %s", argv[i]); + if (strchr (argv[i], ' ') == NULL) + printf (" %s", argv[i]); + else + printf (" '%s'", argv[i]); printf ("\n"); return argv; -- 2.30.2