[PATCH] nvmecontrol breaks world

From: Steve Kargl <sgk_at_troutmask.apl.washington.edu>
Date: Tue, 2 Jul 2013 13:17:29 -0700
Could someone (this could even be me, but need approval) please
fix nvmecontrol?

Index: nvmecontrol/firmware.c
===================================================================
--- nvmecontrol/firmware.c	(revision 252514)
+++ nvmecontrol/firmware.c	(working copy)
_at__at_ -82,7 +82,7 _at__at_ 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);
_at__at_ -95,7 +95,7 _at__at_ 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);
-- 
Steve
Received on Tue Jul 02 2013 - 18:17:36 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:39 UTC