Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 203358
b: refs/heads/master
c: 7db6f5f
h: refs/heads/master
v: v3
  • Loading branch information
Joe Perches authored and David S. Miller committed Jul 4, 2010
1 parent 15b64ba commit 9b5a780
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e490c1defec4236a6a131fe2d13bf7ba787c02f8
refs/heads/master: 7db6f5fb65a82af03229eef104dc9899c5eecf33
5 changes: 5 additions & 0 deletions trunk/include/linux/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,11 @@ static inline void might_fault(void)
}
#endif

struct va_format {
const char *fmt;
va_list *va;
};

extern struct atomic_notifier_head panic_notifier_list;
extern long (*panic_blink)(long time);
NORET_TYPE void panic(const char * fmt, ...)
Expand Down
9 changes: 9 additions & 0 deletions trunk/lib/vsprintf.c
Original file line number Diff line number Diff line change
Expand Up @@ -980,6 +980,11 @@ char *uuid_string(char *buf, char *end, const u8 *addr,
* [0][1][2][3]-[4][5]-[6][7]-[8][9]-[10][11][12][13][14][15]
* little endian output byte order is:
* [3][2][1][0]-[5][4]-[7][6]-[8][9]-[10][11][12][13][14][15]
* - 'V' For a struct va_format which contains a format string * and va_list *,
* call vsnprintf(->format, *->va_list).
* Implements a "recursive vsnprintf".
* Do not use this feature without some mechanism to verify the
* correctness of the format string and va_list arguments.
*
* Note: The difference between 'S' and 'F' is that on ia64 and ppc64
* function pointers are really function descriptors, which contain a
Expand Down Expand Up @@ -1025,6 +1030,10 @@ char *pointer(const char *fmt, char *buf, char *end, void *ptr,
break;
case 'U':
return uuid_string(buf, end, ptr, spec, fmt);
case 'V':
return buf + vsnprintf(buf, end - buf,
((struct va_format *)ptr)->fmt,
*(((struct va_format *)ptr)->va));
}
spec.flags |= SMALL;
if (spec.field_width == -1) {
Expand Down

0 comments on commit 9b5a780

Please sign in to comment.