Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.2
kexec-tools
kexec-tools-ppc64-dynamic-fix-3.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kexec-tools-ppc64-dynamic-fix-3.diff of Package kexec-tools
From 8a2f02cc303147cb09f00a9d322c6bfaee32492d Mon Sep 17 00:00:00 2001 From: Bernhard Walle <bwalle@suse.de> Date: Fri, 16 Jan 2009 18:52:10 +0100 Subject: [PATCH] [PPC64] printf() consolidation Remove the fprintf(stderr,...) in get_memory_ranges() that adds unnecessary output in the normal kexec case that the user don't want to see. Use dbgprintf() in get_base_ranges() instead of #ifdef DEBUG fprintf(stderr,...) #endif to to make the code more readable. Signed-off-by: Bernhard Walle <bwalle@suse.de>diff --git a/kexec/arch/ppc64/kexec-ppc64.c b/kexec/arch/ppc64/kexec-ppc64.c index ad8a31c..8d4e42b 100644 diff --git a/kexec/arch/ppc64/kexec-ppc64.c b/kexec/arch/ppc64/kexec-ppc64.c index ad8a31c..8d4e42b 100644 --- a/kexec/arch/ppc64/kexec-ppc64.c +++ b/kexec/arch/ppc64/kexec-ppc64.c @@ -263,9 +263,8 @@ static int get_base_ranges(void) closedir(dir); sort_base_ranges(); memory_max = base_memory_range[nr_memory_ranges - 1].end; -#ifdef DEBUG - fprintf(stderr, "get base memory ranges:%d\n", nr_memory_ranges); -#endif + dbgprintf("get base memory ranges:%d\n", nr_memory_ranges); + return 0; } @@ -726,7 +725,7 @@ int get_memory_ranges(struct memory_range **range, int *ranges, sizeof(struct memory_range) * nr_memory_ranges); *ranges = nr_memory_ranges; - fprintf(stderr, "get memory ranges:%d\n", nr_memory_ranges); + dbgprintf("get memory ranges:%d\n", nr_memory_ranges); return 0; }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor