Wolfgang Denk f49620665d drivers/net/at91_emac.c: Fix GCC 4.6 build warnings
Fix:
at91_emac.c: In function 'at91emac_phy_init':
at91_emac.c:244:20: warning: variable 'duplex' set but not used
[-Wunused-but-set-variable]
at91_emac.c:244:13: warning: variable 'speed' set but not used
[-Wunused-but-set-variable]

Use new debug_cond() to fix these warnings.  In the result, anumber of
inconsistent printf() formats are detected:

at91_emac.c: In function 'at91emac_read':
at91_emac.c:147:2: warning: format '%x' expects argument of type
'unsigned int', but argument 2 has type 'struct at91_emac_t *'
[-Wformat]
at91_emac.c: In function 'at91emac_write':
at91_emac.c:157:2: warning: format '%x' expects argument of type
'unsigned int', but argument 2 has type 'struct at91_emac_t *'
[-Wformat]
at91_emac.c:157:2: warning: format '%x' expects argument of type
'unsigned int', but argument 4 has type 'short unsigned int *'
[-Wformat]
at91_emac.c: In function 'at91emac_recv':
at91_emac.c:451:3: warning: format '%d' expects argument of type
'int', but argument 2 has type 'long unsigned int' [-Wformat]
at91_emac.c:451:3: warning: format '%x' expects argument of type
'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat]

Fix these, too.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Jens Scharsig <js_at_ng@scharsoft.de>
Cc: Andreas Bießmann <andreas.devel@gmail.com>
Cc: Reinhard Meyer <u-boot@emk-elektronik.de>
2011-12-10 23:08:02 +01:00
..
2011-01-09 18:06:50 +01:00
2010-07-12 00:14:29 -07:00
2010-08-09 11:52:29 -07:00
2010-01-31 22:37:12 -08:00
2010-05-03 14:52:50 -07:00
2011-11-11 11:36:56 +01:00
2011-01-09 18:06:50 +01:00
2011-04-20 15:09:34 -05:00
2011-06-21 22:26:22 +02:00
2008-02-14 09:37:58 +00:00
2011-01-09 18:06:50 +01:00
2011-10-05 22:22:16 +02:00
2011-10-05 22:22:16 +02:00
2008-05-21 00:14:08 +02:00
2011-04-20 13:44:46 -05:00
2008-10-18 21:54:03 +02:00