mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-25 00:52:45 -04:00
fddi: skfp: Use more common logging styles
Several macros use non-standard styles where format and arguments are not verified. Convert these to a more typical fmt, ##__VA_ARGS__ use so format and arguments match as appropriate. Miscellanea: o Fix format and argument mismatches o Realign and reindent misindented block o Strip newlines from formats and add to macro defines o Coalesce a few consecutive logging uses to more simple single uses Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
5dbc653093
commit
5671e8c19c
@@ -726,7 +726,7 @@ void mac2_irq(struct s_smc *smc, u_short code_s2u, u_short code_s2l)
|
||||
if (code_s2u & FM_SMYBEC)
|
||||
queue_event(smc,EVENT_RMT,RM_MY_BEACON) ;
|
||||
if (change_s2u & code_s2u & FM_SLOCLM) {
|
||||
DB_RMTN(2,"RMT : lower claim received\n",0,0) ;
|
||||
DB_RMTN(2, "RMT : lower claim received");
|
||||
}
|
||||
if ((code_s2u & FM_SMYCLM) && !(code_s2l & FM_SDUPCLM)) {
|
||||
/*
|
||||
@@ -746,7 +746,7 @@ void mac2_irq(struct s_smc *smc, u_short code_s2u, u_short code_s2l)
|
||||
queue_event(smc,EVENT_RMT,RM_VALID_CLAIM) ;
|
||||
}
|
||||
if (change_s2u & code_s2u & FM_SHICLM) {
|
||||
DB_RMTN(2,"RMT : higher claim received\n",0,0) ;
|
||||
DB_RMTN(2, "RMT : higher claim received");
|
||||
}
|
||||
if ( (code_s2l & FM_STRTEXP) ||
|
||||
(code_s2l & FM_STRTEXR) )
|
||||
@@ -1334,7 +1334,7 @@ void rtm_irq(struct s_smc *smc)
|
||||
outpw(ADDR(B2_RTM_CRTL),TIM_CL_IRQ) ; /* clear IRQ */
|
||||
if (inpw(ADDR(B2_RTM_CRTL)) & TIM_RES_TOK) {
|
||||
outpw(FM_A(FM_CMDREG1),FM_ICL) ; /* force claim */
|
||||
DB_RMT("RMT: fddiPATHT_Rmode expired\n",0,0) ;
|
||||
DB_RMT("RMT: fddiPATHT_Rmode expired");
|
||||
AIX_EVENT(smc, (u_long) FDDI_RING_STATUS,
|
||||
(u_long) FDDI_SMT_EVENT,
|
||||
(u_long) FDDI_RTT, smt_get_event_word(smc));
|
||||
@@ -1353,8 +1353,8 @@ void rtm_set_timer(struct s_smc *smc)
|
||||
/*
|
||||
* MIB timer and hardware timer have the same resolution of 80nS
|
||||
*/
|
||||
DB_RMT("RMT: setting new fddiPATHT_Rmode, t = %d ns\n",
|
||||
(int) smc->mib.a[PATH0].fddiPATHT_Rmode,0) ;
|
||||
DB_RMT("RMT: setting new fddiPATHT_Rmode, t = %d ns",
|
||||
(int)smc->mib.a[PATH0].fddiPATHT_Rmode);
|
||||
outpd(ADDR(B2_RTM_INI),smc->mib.a[PATH0].fddiPATHT_Rmode) ;
|
||||
}
|
||||
|
||||
@@ -1469,13 +1469,13 @@ static void smt_split_up_fifo(struct s_smc *smc)
|
||||
smc->hw.fp.fifo.rx2_fifo_start = smc->hw.fp.fifo.tx_a0_start +
|
||||
smc->hw.fp.fifo.tx_a0_size ;
|
||||
|
||||
DB_SMT("FIFO split: mode = %x\n",smc->hw.fp.fifo.fifo_config_mode,0) ;
|
||||
DB_SMT("rbc_ram_start = %x rbc_ram_end = %x\n",
|
||||
smc->hw.fp.fifo.rbc_ram_start, smc->hw.fp.fifo.rbc_ram_end) ;
|
||||
DB_SMT("rx1_fifo_start = %x tx_s_start = %x\n",
|
||||
smc->hw.fp.fifo.rx1_fifo_start, smc->hw.fp.fifo.tx_s_start) ;
|
||||
DB_SMT("tx_a0_start = %x rx2_fifo_start = %x\n",
|
||||
smc->hw.fp.fifo.tx_a0_start, smc->hw.fp.fifo.rx2_fifo_start) ;
|
||||
DB_SMT("FIFO split: mode = %x", smc->hw.fp.fifo.fifo_config_mode);
|
||||
DB_SMT("rbc_ram_start = %x rbc_ram_end = %x",
|
||||
smc->hw.fp.fifo.rbc_ram_start, smc->hw.fp.fifo.rbc_ram_end);
|
||||
DB_SMT("rx1_fifo_start = %x tx_s_start = %x",
|
||||
smc->hw.fp.fifo.rx1_fifo_start, smc->hw.fp.fifo.tx_s_start);
|
||||
DB_SMT("tx_a0_start = %x rx2_fifo_start = %x",
|
||||
smc->hw.fp.fifo.tx_a0_start, smc->hw.fp.fifo.rx2_fifo_start);
|
||||
}
|
||||
|
||||
void formac_reinit_tx(struct s_smc *smc)
|
||||
|
||||
Reference in New Issue
Block a user