Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Dec 2016 01:39:11 +0000 (UTC)
From:      Sepherosa Ziehau <sephe@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r310345 - head/sys/geom
Message-ID:  <201612210139.uBL1dBrZ076419@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sephe
Date: Wed Dec 21 01:39:11 2016
New Revision: 310345
URL: https://svnweb.freebsd.org/changeset/base/310345

Log:
  build: Unbreak LINT
  
  Sponsored by:	Microsoft

Modified:
  head/sys/geom/geom_map.c

Modified: head/sys/geom/geom_map.c
==============================================================================
--- head/sys/geom/geom_map.c	Wed Dec 21 01:38:44 2016	(r310344)
+++ head/sys/geom/geom_map.c	Wed Dec 21 01:39:11 2016	(r310345)
@@ -147,8 +147,13 @@ find_marker(struct g_consumer *cp, const
 	bzero(search_key, MAP_MAX_MARKER_LEN);
 	sectorsize = cp->provider->sectorsize;
 
+#ifdef __LP64__
+	ret = sscanf(line, "search:%li:%li:%63c",
+	    &search_start, &search_step, search_key);
+#else
 	ret = sscanf(line, "search:%qi:%qi:%63c",
 	    &search_start, &search_step, search_key);
+#endif
 	if (ret < 3)
 		return (1);
 



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