In SCSI diagnostic messages, cause "0x" to be prepended to the number

in the "info" field to make it clear that it is hexadecimal.
This commit is contained in:
John Polstra 1997-07-25 23:25:20 +00:00
parent 663079ecfe
commit f7218f9f22
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=27686

View File

@ -8,7 +8,7 @@
* file.
*
* Written by Julian Elischer (julian@dialix.oz.au)
* $Id: scsi_base.c,v 1.47 1997/03/24 01:46:15 gibbs Exp $
* $Id: scsi_base.c,v 1.48 1997/04/04 19:37:20 gibbs Exp $
*/
#include "opt_bounce.h"
@ -867,13 +867,13 @@ void scsi_sense_print(xs)
printf(" ILI (length mismatch): %ld", info);
}
else {
printf(" info:%lx", info);
printf(" info:%#lx", info);
}
}
}
}
else if (info)
printf(" info?:%lx", info);
printf(" info?:%#lx", info);
if (ext->extra_len >= 4) {
if (bcmp(ext->cmd_spec_info, "\0\0\0\0", 4)) {