From 879cd68ba8797c8406caec618cc9738c9cd59e69 Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Thu, 3 Oct 2013 18:50:31 +0000 Subject: Print u_int64_t variables with %llu. --- sbin/disklabel/editor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sbin/disklabel/editor.c') diff --git a/sbin/disklabel/editor.c b/sbin/disklabel/editor.c index f74f5244b65..393516ee9ee 100644 --- a/sbin/disklabel/editor.c +++ b/sbin/disklabel/editor.c @@ -1,4 +1,4 @@ -/* $OpenBSD: editor.c,v 1.272 2013/09/10 15:17:46 krw Exp $ */ +/* $OpenBSD: editor.c,v 1.273 2013/10/03 18:50:30 krw Exp $ */ /* * Copyright (c) 1997-2000 Todd C. Miller @@ -1217,7 +1217,7 @@ getuint64(struct disklabel *lp, char *prompt, char *helpstring, if (*p == '+' || *p == '-') operator = *p++; percent = strtod(p, NULL) / 100.0; - snprintf(buf, sizeof(buf), "%lld", + snprintf(buf, sizeof(buf), "%llu", DL_GETDSIZE(lp)); break; case '&': -- cgit v1.2.3