vsprintf.c (c8c3b584343cb7522fc00322769a9f288305743f) vsprintf.c (ce9d3eceb7ffb74445a8d892ca0685395a93a7e2)
1/*
2 * linux/lib/vsprintf.c
3 *
4 * Copyright (C) 1991, 1992 Linus Torvalds
5 */
6
7/* vsprintf.c -- Lars Wirzenius & Linus Torvalds. */
8/*

--- 656 unchanged lines hidden (view full) ---

665 struct printf_spec spec)
666{
667 if (check_pointer(&buf, end, s, spec))
668 return buf;
669
670 return string_nocheck(buf, end, s, spec);
671}
672
1/*
2 * linux/lib/vsprintf.c
3 *
4 * Copyright (C) 1991, 1992 Linus Torvalds
5 */
6
7/* vsprintf.c -- Lars Wirzenius & Linus Torvalds. */
8/*

--- 656 unchanged lines hidden (view full) ---

665 struct printf_spec spec)
666{
667 if (check_pointer(&buf, end, s, spec))
668 return buf;
669
670 return string_nocheck(buf, end, s, spec);
671}
672
673char *pointer_string(char *buf, char *end, const void *ptr,
674 struct printf_spec spec)
673static char *pointer_string(char *buf, char *end,
674 const void *ptr,
675 struct printf_spec spec)
675{
676 spec.base = 16;
677 spec.flags |= SMALL;
678 if (spec.field_width == -1) {
679 spec.field_width = 2 * sizeof(ptr);
680 spec.flags |= ZEROPAD;
681 }
682

--- 2734 unchanged lines hidden ---
676{
677 spec.base = 16;
678 spec.flags |= SMALL;
679 if (spec.field_width == -1) {
680 spec.field_width = 2 * sizeof(ptr);
681 spec.flags |= ZEROPAD;
682 }
683

--- 2734 unchanged lines hidden ---