Date: Thu, 6 Jun 2013 10:00:23 +0000 (UTC) From: Steven Hartland <smh@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r251461 - stable/8/sys/cam/scsi Message-ID: <201306061000.r56A0Neq088227@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: smh Date: Thu Jun 6 10:00:22 2013 New Revision: 251461 URL: http://svnweb.freebsd.org/changeset/base/251461 Log: MFC r246146: Format CDB output as 2 digit hex correcting the length Modified: stable/8/sys/cam/scsi/scsi_all.c Directory Properties: stable/8/sys/ (props changed) stable/8/sys/cam/ (props changed) Modified: stable/8/sys/cam/scsi/scsi_all.c ============================================================================== --- stable/8/sys/cam/scsi/scsi_all.c Thu Jun 6 09:58:23 2013 (r251460) +++ stable/8/sys/cam/scsi/scsi_all.c Thu Jun 6 10:00:22 2013 (r251461) @@ -3112,7 +3112,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?201306061000.r56A0Neq088227>