Date: Mon, 3 Jun 2013 14:33:10 +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-9@freebsd.org Subject: svn commit: r251299 - stable/9/sys/cam/scsi Message-ID: <201306031433.r53EXARJ025893@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: smh Date: Mon Jun 3 14:33:10 2013 New Revision: 251299 URL: http://svnweb.freebsd.org/changeset/base/251299 Log: MFC r246146: Format CDB output as 2 digit hex correcting the length Modified: stable/9/sys/cam/scsi/scsi_all.c Directory Properties: stable/9/sys/ (props changed) Modified: stable/9/sys/cam/scsi/scsi_all.c ============================================================================== --- stable/9/sys/cam/scsi/scsi_all.c Mon Jun 3 13:11:48 2013 (r251298) +++ stable/9/sys/cam/scsi/scsi_all.c Mon Jun 3 14:33:10 2013 (r251299) @@ -3136,7 +3136,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?201306031433.r53EXARJ025893>