Skip to content

Commit

Permalink
powerpc/ps3: Use pr_devel() in ps3/mm.c
Browse files Browse the repository at this point in the history
The non-debug case in ps3/mm.c uses pr_debug(), so that the compiler
still does type checks etc. and doesn't complain about unused
variables in the non-debug case.

However with DEBUG=n and CONFIG_DYNAMIC_DEBUG=y there's still code
generated for those pr_debugs().

size before:
   text    data     bss     dec     hex filename
  17553	   4112	     88	  21753	   54f9	arch/powerpc/platforms/ps3/mm.o

size after:
   text    data     bss     dec     hex filename
   7377	    776	     88	   8241	   2031	arch/powerpc/platforms/ps3/mm.o

Signed-off-by: Michael Ellerman <[email protected]>
Acked-by: Geoff Levand <[email protected]>
Signed-off-by: Benjamin Herrenschmidt <[email protected]>
  • Loading branch information
mpe authored and ozbenh committed Oct 30, 2009
1 parent e22f628 commit 7424639
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/platforms/ps3/mm.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#if defined(DEBUG)
#define DBG udbg_printf
#else
#define DBG pr_debug
#define DBG pr_devel
#endif

enum {
Expand Down

0 comments on commit 7424639

Please sign in to comment.