summaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel
diff options
context:
space:
mode:
authorJag Raman <jag.raman@oracle.com>2017-06-09 12:29:32 -0400
committerDavid S. Miller <davem@davemloft.net>2017-06-10 14:10:55 -0700
commit93ec4a828e6d777a61f497bc6e0cf9239fde35c7 (patch)
treef195fabfa9406d05f8578b0532136e14311bedc3 /arch/sparc/kernel
parent6c95483b768c62f8ee933ae08a1bdbcb78b5410f (diff)
downloadblackbird-op-linux-93ec4a828e6d777a61f497bc6e0cf9239fde35c7.tar.gz
blackbird-op-linux-93ec4a828e6d777a61f497bc6e0cf9239fde35c7.zip
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>
Diffstat (limited to 'arch/sparc/kernel')
-rw-r--r--arch/sparc/kernel/ldc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/sparc/kernel/ldc.c b/arch/sparc/kernel/ldc.c
index 47817b78ebfc..97a5743b04e2 100644
--- a/arch/sparc/kernel/ldc.c
+++ b/arch/sparc/kernel/ldc.c
@@ -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);
OpenPOWER on IntegriCloud