Skip to content

Commit

Permalink
iio: adc: ad9361: replace printk with pr_err
Browse files Browse the repository at this point in the history
Since this is a debug code, it should be fine to use the max log level
[error].
checkpatch reports:
   `WARNING: printk() should include KERN_ facility level`

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
  • Loading branch information
commodo committed Apr 18, 2018
1 parent 53a1878 commit ebe67ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/iio/adc/ad9361.c
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@ static int ad9361_spi_writem(struct spi_device *spi,
{
int i;
for (i = 0; i < num; i++)
printk("%s: reg 0x%X val 0x%X\n", __func__, reg--, tbuf[i]);
pr_err("%s: reg 0x%X val 0x%X\n", __func__, reg--, tbuf[i]);
}
#endif

Expand Down Expand Up @@ -2611,9 +2611,9 @@ static int ad9361_tx_quad_phase_search(struct ad9361_rf_phy *phy, u32 rxnco_word

#ifdef _DEBUG
for (i = 0; i < 64; i++) {
printk("%c", (field[i] ? '#' : 'o'));
pr_err("%c", (field[i] ? '#' : 'o'));
}
printk(" RX_NCO_PHASE_OFFSET(%d, 0x%X) \n", phy->last_tx_quad_cal_phase,
pr_err(" RX_NCO_PHASE_OFFSET(%d, 0x%X)\n", phy->last_tx_quad_cal_phase,
phy->last_tx_quad_cal_phase);
#endif

Expand Down

0 comments on commit ebe67ca

Please sign in to comment.