projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83c3178
)
drm/i915: Make the hexdump row offset visually distinct
author
Chris Wilson
<
[email protected]
>
Thu, 14 Jun 2018 09:41:01 +0000
(10:41 +0100)
committer
Chris Wilson
<
[email protected]
>
Thu, 14 Jun 2018 13:35:12 +0000
(14:35 +0100)
Currently we use %08x for the row offset, and %08x for the binary
contents of the buffer. This makes it very easily to confuse the two, so
switch to using [%04x] for the start-of-row offset.
Signed-off-by: Chris Wilson <
[email protected]
>
Reviewed-by: Joonas Lahtinen <
[email protected]
>
Link:
https://patchwork.freedesktop.org/patch/msgid/
[email protected]
drivers/gpu/drm/i915/intel_engine_cs.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/intel_engine_cs.c
b/drivers/gpu/drm/i915/intel_engine_cs.c
index 0ffce14ab08d96ea320ca07bd4f6abe988e45e23..8b3d7aa3dfde04bbdfb3cd080a31d2e1827abcc6 100644
(file)
--- a/
drivers/gpu/drm/i915/intel_engine_cs.c
+++ b/
drivers/gpu/drm/i915/intel_engine_cs.c
@@
-1258,7
+1258,7
@@
static void hexdump(struct drm_printer *m, const void *buf, size_t len)
rowsize, sizeof(u32),
line, sizeof(line),
false) >= sizeof(line));
- drm_printf(m, "
%08zx
%s\n", pos, line);
+ drm_printf(m, "
[%04zx]
%s\n", pos, line);
prev = buf + pos;
skip = false;