Module Name: src
Committed By: jakllsch
Date: Tue Dec 24 21:41:49 UTC 2013
Modified Files:
src/sys/lib/libsa: subr_prf.c
Log Message:
Add 'j' format modifier for intmax_t.
To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/lib/libsa/subr_prf.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/lib/libsa/subr_prf.c
diff -u src/sys/lib/libsa/subr_prf.c:1.21 src/sys/lib/libsa/subr_prf.c:1.22
--- src/sys/lib/libsa/subr_prf.c:1.21 Sun Jul 17 20:54:52 2011
+++ src/sys/lib/libsa/subr_prf.c Tue Dec 24 21:41:49 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_prf.c,v 1.21 2011/07/17 20:54:52 joerg Exp $ */
+/* $NetBSD: subr_prf.c,v 1.22 2013/12/24 21:41:49 jakllsch Exp $ */
/*-
* Copyright (c) 1993
@@ -213,6 +213,10 @@ reswitch:
#endif
lflag |= LONG;
goto reswitch;
+ case 'j':
+ if (sizeof(intmax_t) == sizeof(long))
+ lflag |= LONG;
+ goto reswitch;
case 't':
if (sizeof(PTRDIFF_T) == sizeof(long))
lflag |= LONG;