Like patch 1/5, this one moves code under #if DEBUG to --debug on sh arch. Signed-off-by: Cong Wang <xiyou.wangcong at gmail.com> --- kexec/arch/sh/crashdump-sh.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kexec/arch/sh/crashdump-sh.c b/kexec/arch/sh/crashdump-sh.c index f3c8c74..68ca756 100644 --- a/kexec/arch/sh/crashdump-sh.c +++ b/kexec/arch/sh/crashdump-sh.c @@ -142,9 +142,9 @@ static int add_cmdline_param(char *cmdline, uint64_t addr, char *cmdstr, if (cmdlen > (COMMAND_LINE_SIZE - 1)) die("Command line overflow\n"); strcat(cmdline, str); -#if DEBUG - fprintf(stderr, "Command line after adding elfcorehdr: %s\n", cmdline); -#endif + + dbgprintf("Command line after adding elfcorehdr: %s\n", cmdline); + return 0; } -- 1.7.7.6