Date: Thu, 31 Jan 2013 14:07:25 +0000 (UTC) From: Steven Hartland <smh@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r246146 - head/sys/cam/scsi Message-ID: <201301311407.r0VE7PrX098202@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: smh Date: Thu Jan 31 14:07:24 2013 New Revision: 246146 URL: http://svnweb.freebsd.org/changeset/base/246146 Log: Format CDB output as 2 digit hex correcting the length Approved by: pjd (mentor) MFC after: 1 week Modified: head/sys/cam/scsi/scsi_all.c Modified: head/sys/cam/scsi/scsi_all.c ============================================================================== --- head/sys/cam/scsi/scsi_all.c Thu Jan 31 11:00:57 2013 (r246145) +++ head/sys/cam/scsi/scsi_all.c Thu Jan 31 14:07:24 2013 (r246146) @@ -3139,7 +3139,7 @@ scsi_cdb_string(u_int8_t *cdb_ptr, char *cdb_string = '\0'; for (i = 0; i < cdb_len; i++) snprintf(cdb_string + strlen(cdb_string), - len - strlen(cdb_string), "%x ", cdb_ptr[i]); + len - strlen(cdb_string), "%02hhx ", cdb_ptr[i]); return(cdb_string); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301311407.r0VE7PrX098202>