Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 140505
b: refs/heads/master
c: ed681a9
h: refs/heads/master
i:
  140503: 3463168
v: v3
  • Loading branch information
Vegard Nossum authored and Ingo Molnar committed Mar 14, 2009
1 parent 65cb0e8 commit dfeca72
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: adf26f84a62b492e002d3b75af671f23ddd3be0a
refs/heads/master: ed681a91ab805341675d166a9592551093c0a2d9
12 changes: 6 additions & 6 deletions trunk/lib/vsprintf.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ static noinline char* put_dec(char *buf, unsigned long long num)

enum format_type {
FORMAT_TYPE_NONE, /* Just a string part */
FORMAT_TYPE_WITDH,
FORMAT_TYPE_WIDTH,
FORMAT_TYPE_PRECISION,
FORMAT_TYPE_CHAR,
FORMAT_TYPE_STR,
Expand Down Expand Up @@ -770,7 +770,7 @@ static int format_decode(const char *fmt, struct printf_spec *spec)
const char *start = fmt;

/* we finished early by reading the field width */
if (spec->type == FORMAT_TYPE_WITDH) {
if (spec->type == FORMAT_TYPE_WIDTH) {
if (spec->field_width < 0) {
spec->field_width = -spec->field_width;
spec->flags |= LEFT;
Expand Down Expand Up @@ -828,7 +828,7 @@ static int format_decode(const char *fmt, struct printf_spec *spec)
spec->field_width = skip_atoi(&fmt);
else if (*fmt == '*') {
/* it's the next argument */
spec->type = FORMAT_TYPE_WITDH;
spec->type = FORMAT_TYPE_WIDTH;
return ++fmt - start;
}

Expand Down Expand Up @@ -1002,7 +1002,7 @@ int vsnprintf(char *buf, size_t size, const char *fmt, va_list args)
break;
}

case FORMAT_TYPE_WITDH:
case FORMAT_TYPE_WIDTH:
spec.field_width = va_arg(args, int);
break;

Expand Down Expand Up @@ -1306,7 +1306,7 @@ do { \
case FORMAT_TYPE_NONE:
break;

case FORMAT_TYPE_WITDH:
case FORMAT_TYPE_WIDTH:
case FORMAT_TYPE_PRECISION:
save_arg(int);
break;
Expand Down Expand Up @@ -1472,7 +1472,7 @@ int bstr_printf(char *buf, size_t size, const char *fmt, const u32 *bin_buf)
break;
}

case FORMAT_TYPE_WITDH:
case FORMAT_TYPE_WIDTH:
spec.field_width = get_arg(int);
break;

Expand Down

0 comments on commit dfeca72

Please sign in to comment.