Date: Tue, 24 Feb 2015 05:43:17 +0000 (UTC) From: "Kenneth D. Merry" <ken@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r279229 - head/sys/cam/scsi Message-ID: <201502240543.t1O5hH5X092181@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ken Date: Tue Feb 24 05:43:16 2015 New Revision: 279229 URL: https://svnweb.freebsd.org/changeset/base/279229 Log: Fix printf format warnings on sparc64 and mips. Sponsored by: Spectra Logic MFC after: 1 month Modified: head/sys/cam/scsi/scsi_sa.c Modified: head/sys/cam/scsi/scsi_sa.c ============================================================================== --- head/sys/cam/scsi/scsi_sa.c Tue Feb 24 05:35:15 2015 (r279228) +++ head/sys/cam/scsi/scsi_sa.c Tue Feb 24 05:43:16 2015 (r279229) @@ -4432,7 +4432,7 @@ saextget(struct cdev *dev, struct cam_pe ts2_len); SASBADDVARSTRDESC(sb, indent, tmpstr2, %s, serial_num, - cgd.serial_num_len + 1, "Serial Number"); + (ssize_t)cgd.serial_num_len + 1, "Serial Number"); if (ts2_malloc != 0) free(tmpstr2, M_SCSISA); } else { @@ -4441,8 +4441,8 @@ saextget(struct cdev *dev, struct cam_pe * be empty if the device has no serial number. */ tmpstr[0] = '\0'; - SASBADDVARSTRDESC(sb, indent, tmpstr, %s, serial_num, 0, - "Serial Number"); + SASBADDVARSTRDESC(sb, indent, tmpstr, %s, serial_num, + (ssize_t)0, "Serial Number"); } SASBADDUINTDESC(sb, indent, softc->maxio, %u, maxio,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502240543.t1O5hH5X092181>