Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Jul 2013 00:26:24 +0000 (UTC)
From:      Jim Harris <jimharris@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r252672 - head/sbin/nvmecontrol
Message-ID:  <201307040026.r640QOCd079203@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jimharris
Date: Thu Jul  4 00:26:24 2013
New Revision: 252672
URL: http://svnweb.freebsd.org/changeset/base/252672

Log:
  Fix printf argument mismatch reported by gcc on i386.
  
  Reported by: kargl

Modified:
  head/sbin/nvmecontrol/firmware.c

Modified: head/sbin/nvmecontrol/firmware.c
==============================================================================
--- head/sbin/nvmecontrol/firmware.c	Thu Jul  4 00:16:43 2013	(r252671)
+++ head/sbin/nvmecontrol/firmware.c	Thu Jul  4 00:26:24 2013	(r252672)
@@ -82,7 +82,7 @@ read_image_file(char *path, void **buf, 
 		exit(EX_IOERR);
 	}
 	if ((*buf = malloc(sb.st_size)) == NULL) {
-		fprintf(stderr, "Unable to malloc %zd bytes.\n",
+		fprintf(stderr, "Unable to malloc %jd bytes.\n",
 		    sb.st_size);
 		close(fd);
 		exit(EX_IOERR);
@@ -95,7 +95,7 @@ read_image_file(char *path, void **buf, 
 	}
 	if (*size != sb.st_size) {
 		fprintf(stderr, "Error reading '%s', "
-		    "read %zd bytes, requested %zd bytes\n",
+		    "read %zd bytes, requested %jd bytes\n",
 		    path, *size, sb.st_size);
 		close(fd);
 		exit(EX_IOERR);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307040026.r640QOCd079203>