Skip to content

Commit

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

#define HEX_CHARS 17
static const char hex2asc[] = "0123456789abcdef";

static int
trace_seq_putmem_hex(struct trace_seq *s, void *mem, size_t len)
{
unsigned char hex[HEX_CHARS];
unsigned char *data = mem;
unsigned char byte;
int i, j;

BUG_ON(len >= HEX_CHARS);
Expand All @@ -353,10 +351,8 @@ trace_seq_putmem_hex(struct trace_seq *s, void *mem, size_t len)
#else
for (i = len-1, j = 0; i >= 0; i--) {
#endif
byte = data[i];

hex[j++] = hex2asc[byte & 0x0f];
hex[j++] = hex2asc[byte >> 4];
hex[j++] = hex_asc_hi(data[i]);
hex[j++] = hex_asc_lo(data[i]);
}
hex[j++] = ' ';

Expand Down

0 comments on commit 9476944

Please sign in to comment.