[Patch] kexec: improve the debug printf in get_crash_notes_per_cpu()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Nov 16, 2011 at 09:19:44PM +0800, WANG Cong wrote:
> Signed-off-by: WANG Cong <xiyou.wangcong at gmail.com>

Thanks, applied.

> ---
> diff --git a/kexec/crashdump.c b/kexec/crashdump.c
> index 945b052..e7ac42c 100644
> --- a/kexec/crashdump.c
> +++ b/kexec/crashdump.c
> @@ -102,8 +102,8 @@ int get_crash_notes_per_cpu(int cpu, uint64_t *addr, uint64_t *len)
>  		die("Cannot parse %s: %s\n", crash_notes, strerror(errno));
>  	*addr = (uint64_t) temp;
>  	*len = MAX_NOTE_BYTES; /* we should get this from the kernel instead */
> -#if 0
> -	printf("crash_notes addr = %Lx\n", *addr);
> +#ifdef DEBUG
> +	printf("%s: crash_notes addr = %Lx\n", __function__, *addr);
>  #endif
>  
>  	fclose(fp);
> 



[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux