diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1997-09-12 01:29:55 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 1997-09-12 01:29:55 +0000 |
commit | 545f435ebcfd94a1e7c20b46efe81b4d6ac4e698 (patch) | |
tree | e9ce4bc598d06374bda906f18365984bf22a526a /lib/vsprintf.c | |
parent | 4291a610eef89d0d5c69d9a10ee6560e1aa36c74 (diff) |
Merge with Linux 2.1.55. More bugfixes and goodies from my private
CVS archive.
Diffstat (limited to 'lib/vsprintf.c')
-rw-r--r-- | lib/vsprintf.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/lib/vsprintf.c b/lib/vsprintf.c index b63f5469c..8c3daf203 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c @@ -253,41 +253,6 @@ int vsprintf(char *buf, const char *fmt, va_list args) } continue; - case 'I': /* IPv4 / IPv6 printout */ - { - __u8 *ip4; - char sbuf[6]; - if (qualifier == 'l') { - __u16 *ip6 = va_arg(args, __u16 *); - i = 6; - for ( ; i > 0; --i, ++ip6) - if (*ip6 != 0) - break; - if (i < 6) - *str++ = ':'; - for ( ; i > 0; --i, ++ip6) { - sprintf(sbuf,":%04x",(int)(*ip6)); - s = sbuf; - while (*s) - *str++ = *s++; - } - *str++ = ':'; - ip4 = (__u8*) ip6; - } else { - ip4 = va_arg(args, __u8 *); - } - for (i = 0; i < 4; ++i, ++ip4) { - if (i == 3) - sprintf(sbuf,"%d", 0xFF & (*ip4)); - else - sprintf(sbuf,"%d.", 0xFF & (*ip4)); - s = sbuf; - while (*s) - *str++ = *s++; - } - } - continue; - /* integer number formats - set up the flags and "break" */ case 'o': base = 8; |