summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/geom/geom_map.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/geom/geom_map.c b/sys/geom/geom_map.c
index cfd886b..91e2787 100644
--- a/sys/geom/geom_map.c
+++ b/sys/geom/geom_map.c
@@ -147,8 +147,13 @@ find_marker(struct g_consumer *cp, const char *line, off_t *offset)
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);
OpenPOWER on IntegriCloud