Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 272193
b: refs/heads/master
c: 48e4189
h: refs/heads/master
i:
  272191: 48a0231
v: v3
  • Loading branch information
William Douglas authored and Linus Torvalds committed Nov 1, 2011
1 parent 3b1e56c commit 52cb9b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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: 134620f7a865b3bc9e3d56d460603592b70ede21
refs/heads/master: 48e41899e4a3592746e5263c14681bf5c1393563
2 changes: 1 addition & 1 deletion trunk/kernel/printk.c
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ static size_t log_prefix(const char *p, unsigned int *level, char *special)
/* multi digit including the level and facility number */
char *endp = NULL;

if (p[1] < '0' && p[1] > '9')
if (p[1] < '0' || p[1] > '9')
return 0;

lev = (simple_strtoul(&p[1], &endp, 10) & 7);
Expand Down

0 comments on commit 52cb9b2

Please sign in to comment.