diff options
| -rw-r--r-- | drivers/infiniband/ulp/srp/ib_srp.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c index ed3f9ebae882..4675defb374c 100644 --- a/drivers/infiniband/ulp/srp/ib_srp.c +++ b/drivers/infiniband/ulp/srp/ib_srp.c | |||
| @@ -879,21 +879,10 @@ static void srp_handle_recv(struct srp_target_port *target, struct ib_wc *wc) | |||
| 879 | opcode = *(u8 *) iu->buf; | 879 | opcode = *(u8 *) iu->buf; |
| 880 | 880 | ||
| 881 | if (0) { | 881 | if (0) { |
| 882 | int i; | ||
| 883 | |||
| 884 | shost_printk(KERN_ERR, target->scsi_host, | 882 | shost_printk(KERN_ERR, target->scsi_host, |
| 885 | PFX "recv completion, opcode 0x%02x\n", opcode); | 883 | PFX "recv completion, opcode 0x%02x\n", opcode); |
| 886 | 884 | print_hex_dump(KERN_ERR, "", DUMP_PREFIX_OFFSET, 8, 1, | |
| 887 | for (i = 0; i < wc->byte_len; ++i) { | 885 | iu->buf, wc->byte_len, true); |
| 888 | if (i % 8 == 0) | ||
| 889 | printk(KERN_ERR " [%02x] ", i); | ||
| 890 | printk(" %02x", ((u8 *) iu->buf)[i]); | ||
| 891 | if ((i + 1) % 8 == 0) | ||
| 892 | printk("\n"); | ||
| 893 | } | ||
| 894 | |||
| 895 | if (wc->byte_len % 8) | ||
| 896 | printk("\n"); | ||
| 897 | } | 886 | } |
| 898 | 887 | ||
| 899 | switch (opcode) { | 888 | switch (opcode) { |
