From owner-freebsd-current@FreeBSD.ORG Tue Jul 2 20:17:36 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 2041F343 for ; Tue, 2 Jul 2013 20:17:36 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) by mx1.freebsd.org (Postfix) with ESMTP id 0528F1311 for ; Tue, 2 Jul 2013 20:17:35 +0000 (UTC) Received: from troutmask.apl.washington.edu (localhost.apl.washington.edu [127.0.0.1]) by troutmask.apl.washington.edu (8.14.6/8.14.6) with ESMTP id r62KHThI068552 for ; Tue, 2 Jul 2013 13:17:29 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.14.6/8.14.6/Submit) id r62KHTgC068551 for freebsd-current@freebsd.org; Tue, 2 Jul 2013 13:17:29 -0700 (PDT) (envelope-from sgk) Date: Tue, 2 Jul 2013 13:17:29 -0700 From: Steve Kargl To: freebsd-current@freebsd.org Subject: [PATCH] nvmecontrol breaks world Message-ID: <20130702201728.GA68544@troutmask.apl.washington.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jul 2013 20:17:36 -0000 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