mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 09:59:32 +00:00
sparc64: print debug messages when reading from LDC channel
Print debug messages when reading from given LDC channel. Signed-off-by: Jagannathan Raman <jag.raman@oracle.com> Reviewed-by: Aaron Young <aaron.young@oracle.com> Reviewed-by: Alexandre Chartre <alexandre.chartre@oracle.com> Reviewed-by: Bijan Mottahedeh <bijan.mottahedeh@oracle.com> Reviewed-by: Liam Merwick <liam.merwick@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
6c95483b76
commit
93ec4a828e
1 changed files with 5 additions and 0 deletions
|
@ -1950,6 +1950,8 @@ int ldc_read(struct ldc_channel *lp, void *buf, unsigned int size)
|
|||
unsigned long flags;
|
||||
int err;
|
||||
|
||||
ldcdbg(RX, "%s: entered size=%d\n", __func__, size);
|
||||
|
||||
if (!buf)
|
||||
return -EINVAL;
|
||||
|
||||
|
@ -1965,6 +1967,9 @@ int ldc_read(struct ldc_channel *lp, void *buf, unsigned int size)
|
|||
|
||||
spin_unlock_irqrestore(&lp->lock, flags);
|
||||
|
||||
ldcdbg(RX, "%s: mode=%d, head=%lu, tail=%lu rv=%d\n", __func__,
|
||||
lp->cfg.mode, lp->rx_head, lp->rx_tail, err);
|
||||
|
||||
return err;
|
||||
}
|
||||
EXPORT_SYMBOL(ldc_read);
|
||||
|
|
Loading…
Reference in a new issue