scsi.c: use printaddr
* scsi.c (print_sg_io_buffer): Use printaddr.
This commit is contained in:
parent
1252d26db8
commit
8277ec9c60
6
scsi.c
6
scsi.c
@ -52,9 +52,9 @@ print_sg_io_buffer(struct tcb *tcp, unsigned long addr, const unsigned int len)
|
||||
if (len == 0)
|
||||
goto out;
|
||||
allocated = (len > max_strlen) ? max_strlen : len;
|
||||
if ((buf = malloc(allocated)) == NULL ||
|
||||
umoven(tcp, addr, allocated, buf) < 0) {
|
||||
tprintf("%#lx", addr);
|
||||
buf = malloc(allocated);
|
||||
if (!buf || umoven(tcp, addr, allocated, buf) < 0) {
|
||||
printaddr(addr);
|
||||
goto out;
|
||||
}
|
||||
tprintf("%02x", buf[0]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user