diff options
author | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2016-07-16 16:10:45 +0000 |
---|---|---|
committer | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2016-07-16 16:10:45 +0000 |
commit | 1d1506e270f32e369bc5478ad7598104c373f6aa (patch) | |
tree | 7095262cc395990e0ea58ce67bc8ada19e18fe85 /lib/libutil/fmt_scaled.3 | |
parent | 8505980752f1446282bc3026bdeeb9525936f3c4 (diff) |
Fix example: long long should be print with %lld
Diffstat (limited to 'lib/libutil/fmt_scaled.3')
-rw-r--r-- | lib/libutil/fmt_scaled.3 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libutil/fmt_scaled.3 b/lib/libutil/fmt_scaled.3 index 99a35a0509d..6c4563497dc 100644 --- a/lib/libutil/fmt_scaled.3 +++ b/lib/libutil/fmt_scaled.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: fmt_scaled.3,v 1.7 2014/09/08 01:27:54 schwarze Exp $ +.\" $OpenBSD: fmt_scaled.3,v 1.8 2016/07/16 16:10:44 jca Exp $ .\" Copyright (c) 2001, 2003 Ian Darwin. All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without @@ -23,7 +23,7 @@ .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: September 8 2014 $ +.Dd $Mdocdate: July 16 2016 $ .Dt FMT_SCALED 3 .Os .Sh NAME @@ -86,7 +86,7 @@ was malformed, e.g., too many '.' characters. char *cinput = "1.5K"; long long result; if (scan_scaled(cinput, &result) == 0) - printf("%s -> %ld\en", cinput, result); + printf("%s -> %lld\en", cinput, result); else fprintf(stderr, "%s - invalid\en", cinput); |