Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 116682
b: refs/heads/master
c: ad0a3b6
h: refs/heads/master
v: v3
  • Loading branch information
Harvey Harrison authored and Ingo Molnar committed Oct 14, 2008
1 parent 9476944 commit bb8a72a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 2fbc474901933c8f0c09b0280dfbb6780cb8bd60
refs/heads/master: ad0a3b68114e8f3c25ac0045b45a2838f23e3b3a
6 changes: 3 additions & 3 deletions trunk/kernel/trace/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,8 @@ trace_seq_putmem(struct trace_seq *s, void *mem, size_t len)
return len;
}

#define HEX_CHARS 17
#define MAX_MEMHEX_BYTES 8
#define HEX_CHARS (MAX_MEMHEX_BYTES*2 + 1)

static int
trace_seq_putmem_hex(struct trace_seq *s, void *mem, size_t len)
Expand All @@ -344,8 +345,6 @@ trace_seq_putmem_hex(struct trace_seq *s, void *mem, size_t len)
unsigned char *data = mem;
int i, j;

BUG_ON(len >= HEX_CHARS);

#ifdef __BIG_ENDIAN
for (i = 0, j = 0; i < len; i++) {
#else
Expand Down Expand Up @@ -1668,6 +1667,7 @@ do { \

#define SEQ_PUT_HEX_FIELD_RET(s, x) \
do { \
BUILD_BUG_ON(sizeof(x) > MAX_MEMHEX_BYTES); \
if (!trace_seq_putmem_hex(s, &(x), sizeof(x))) \
return 0; \
} while (0)
Expand Down

0 comments on commit bb8a72a

Please sign in to comment.