From 300db286ea7a257bba6fe3e1e57d269c800f1492 Mon Sep 17 00:00:00 2001 From: Matthew Booth Date: Mon, 31 Oct 2011 16:47:50 +0000 Subject: [PATCH] Fix debug help error message. When given an invalid debug command, libguestfs responds with the error message: libguestfs: error: debug: use 'debug help' to list the supported commands However this command does not work, as debug requires two arguments. This change updates the message to prompt the user to use 'debug help 0'. (cherry picked from commit 4e3a1205ebfec1a5cbc3062d6f73a684090e80b5) --- daemon/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/debug.c b/daemon/debug.c index 0ade2a4..f80a1ca 100644 --- a/daemon/debug.c +++ b/daemon/debug.c @@ -88,7 +88,7 @@ do_debug (const char *subcmd, char *const *argv) return cmds[i].f (subcmd, argc, argv); } - reply_with_error ("use 'debug help' to list the supported commands"); + reply_with_error ("use 'debug help 0' to list the supported commands"); return NULL; } -- 1.8.3.1