scsi: hpsa: Use vsnprintf extension %phN
Using this extension reduces the object size. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: Don Brace <don.brace@microsemi.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
85e75175fa
commit
f4d0ad1f27
@ -4619,21 +4619,13 @@ sglist_finished:
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define BUFLEN 128
|
|
||||||
static inline void warn_zero_length_transfer(struct ctlr_info *h,
|
static inline void warn_zero_length_transfer(struct ctlr_info *h,
|
||||||
u8 *cdb, int cdb_len,
|
u8 *cdb, int cdb_len,
|
||||||
const char *func)
|
const char *func)
|
||||||
{
|
{
|
||||||
char buf[BUFLEN];
|
dev_warn(&h->pdev->dev,
|
||||||
int outlen;
|
"%s: Blocking zero-length request: CDB:%*phN\n",
|
||||||
int i;
|
func, cdb_len, cdb);
|
||||||
|
|
||||||
outlen = scnprintf(buf, BUFLEN,
|
|
||||||
"%s: Blocking zero-length request: CDB:", func);
|
|
||||||
for (i = 0; i < cdb_len; i++)
|
|
||||||
outlen += scnprintf(buf+outlen, BUFLEN - outlen,
|
|
||||||
"%02hhx", cdb[i]);
|
|
||||||
dev_warn(&h->pdev->dev, "%s\n", buf);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#define IO_ACCEL_INELIGIBLE 1
|
#define IO_ACCEL_INELIGIBLE 1
|
||||||
|
Loading…
Reference in New Issue
Block a user