aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2002-07-05 18:36:49 +0000
committerWarner Losh <imp@FreeBSD.org>2002-07-05 18:36:49 +0000
commite0b7446484c173c40bd382b80f94b6a68ebb1ba1 (patch)
tree4d51266f76741726c87f6217ed22d4615d281539 /sys
parent0ad736e62b3f8c5d8ae242610ba2ab9786d92e59 (diff)
downloadsrc-e0b7446484c173c40bd382b80f94b6a68ebb1ba1.tar.gz
src-e0b7446484c173c40bd382b80f94b6a68ebb1ba1.zip
dd %i as an alias for %d for greater compatibility with our *BSD bretheren
Obtained from: NetBSD Reviewed by: jake, rwatson, bosko
Notes
Notes: svn path=/head/; revision=99459
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/subr_prf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/subr_prf.c b/sys/kern/subr_prf.c
index 7f9b7906bc84..c6b5beeea21c 100644
--- a/sys/kern/subr_prf.c
+++ b/sys/kern/subr_prf.c
@@ -592,6 +592,7 @@ reswitch: switch (ch = (u_char)*fmt++) {
}
break;
case 'd':
+ case 'i':
base = 10;
sign = 1;
goto handle_sign;