[PATCH] nvmecontrol breaks world

看板FB_current作者時間12年前 (2013/07/03 04:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/5 (看更多)
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) @@ -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); -- Steve _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1HqpZ2US (FB_current)
文章代碼(AID): #1HqpZ2US (FB_current)