Use %p to print a pointer.

This commit is contained in:
simonb 2006-09-09 04:12:00 +00:00
parent 996ce3b799
commit cec3b712bd
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: scsi_hi.c,v 1.5 2006/05/12 06:05:23 simonb Exp $ */
/* $NetBSD: scsi_hi.c,v 1.6 2006/09/09 04:12:00 simonb Exp $ */
/****************************************************************************
* NS32K Monitor SCSI high-level driver
@ -256,7 +256,7 @@ get_sense(struct drive *dp)
return OK; /* orig command was ok with recovery */
default:
printf("SCSI failure: key 0x%x code 0x%x log adr 0x%x "
"sense buf 0x%x\n", sense_buf[SENSE_KEY],
"sense buf %p\n", sense_buf[SENSE_KEY],
sense_buf[ADD_SENSE_CODE], XLOGICAL_ADR, sense_buf);
return NOT_OK; /* orig command failed */
}