Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Feb 2018 17:47:16 +0000 (UTC)
From:      Alan Somers <asomers@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r329830 - head/sbin/nvmecontrol
Message-ID:  <201802221747.w1MHlGJS032223@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: asomers
Date: Thu Feb 22 17:47:16 2018
New Revision: 329830
URL: https://svnweb.freebsd.org/changeset/base/329830

Log:
  nvmecontrol: fix build on amd64/clang
  
  Broken by:	329824
  Sponsored by:	Spectra Logic Corp

Modified:
  head/sbin/nvmecontrol/identify.c

Modified: head/sbin/nvmecontrol/identify.c
==============================================================================
--- head/sbin/nvmecontrol/identify.c	Thu Feb 22 17:09:26 2018	(r329829)
+++ head/sbin/nvmecontrol/identify.c	Thu Feb 22 17:47:16 2018	(r329830)
@@ -112,7 +112,7 @@ print_controller(struct nvme_controller_data *cdata)
 	if (cdata->mdts == 0)
 		printf("Unlimited\n");
 	else
-		printf("%ld\n", PAGE_SIZE * (1 << cdata->mdts));
+		printf("%d\n", PAGE_SIZE * (1 << cdata->mdts));
 	printf("Controller ID:              0x%02x\n", cdata->ctrlr_id);
 	printf("\n");
 



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