* [PATCH v1] scsi: dc395x: use %*ph to print small buffer
@ 2020-07-30 15:35 Andy Shevchenko
2020-09-09 2:17 ` Martin K. Petersen
0 siblings, 1 reply; 2+ messages in thread
From: Andy Shevchenko @ 2020-07-30 15:35 UTC (permalink / raw)
To: Oliver Neukum, Ali Akcaagac, Jamie Lenehan, dc395x,
James E.J. Bottomley, Martin K. Petersen, linux-scsi
Cc: Andy Shevchenko
Use %*ph format to print small buffer as hex string.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/scsi/dc395x.c | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/drivers/scsi/dc395x.c b/drivers/scsi/dc395x.c
index 37c6cc374079..434758dde9b4 100644
--- a/drivers/scsi/dc395x.c
+++ b/drivers/scsi/dc395x.c
@@ -4504,14 +4504,8 @@ static int dc395x_show_info(struct seq_file *m, struct Scsi_Host *host)
/*seq_printf(m, "\n"); */
seq_printf(m, "Nr of DCBs: %i\n", list_size(&acb->dcb_list));
- seq_printf(m, "Map of attached LUNs: %02x %02x %02x %02x %02x %02x %02x %02x\n",
- acb->dcb_map[0], acb->dcb_map[1], acb->dcb_map[2],
- acb->dcb_map[3], acb->dcb_map[4], acb->dcb_map[5],
- acb->dcb_map[6], acb->dcb_map[7]);
- seq_printf(m, " %02x %02x %02x %02x %02x %02x %02x %02x\n",
- acb->dcb_map[8], acb->dcb_map[9], acb->dcb_map[10],
- acb->dcb_map[11], acb->dcb_map[12], acb->dcb_map[13],
- acb->dcb_map[14], acb->dcb_map[15]);
+ seq_printf(m, "Map of attached LUNs: %8ph\n", &acb->dcb_map[0]);
+ seq_printf(m, " %8ph\n", &acb->dcb_map[8]);
seq_puts(m,
"Un ID LUN Prty Sync Wide DsCn SndS TagQ nego_period SyncFreq SyncOffs MaxCmd\n");
--
2.27.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v1] scsi: dc395x: use %*ph to print small buffer
2020-07-30 15:35 [PATCH v1] scsi: dc395x: use %*ph to print small buffer Andy Shevchenko
@ 2020-09-09 2:17 ` Martin K. Petersen
0 siblings, 0 replies; 2+ messages in thread
From: Martin K. Petersen @ 2020-09-09 2:17 UTC (permalink / raw)
To: Andy Shevchenko, Oliver Neukum, dc395x, linux-scsi,
James E.J. Bottomley, Ali Akcaagac, Jamie Lenehan
Cc: Martin K . Petersen
On Thu, 30 Jul 2020 18:35:35 +0300, Andy Shevchenko wrote:
> Use %*ph format to print small buffer as hex string.
Applied to 5.10/scsi-queue, thanks!
[1/1] scsi: dc395x: Use %*ph to print small buffer
https://git.kernel.org/mkp/scsi/c/ca358af1d1bb
--
Martin K. Petersen Oracle Linux Engineering
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-09-09 2:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-30 15:35 [PATCH v1] scsi: dc395x: use %*ph to print small buffer Andy Shevchenko
2020-09-09 2:17 ` Martin K. Petersen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).