diff options
author | David Howells <dhowells@redhat.com> | 2013-04-12 15:34:31 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-05-01 17:29:44 -0400 |
commit | b63e6aa5028dfde3b360945564290de28b47c2d7 (patch) | |
tree | 1761e4b0f59254bb30602d9690c2431c5a7f5b36 /net/ethernet | |
parent | ce089b5472f7d0321bcb2cbc22d85bac15e4778b (diff) | |
download | talos-obmc-linux-b63e6aa5028dfde3b360945564290de28b47c2d7.tar.gz talos-obmc-linux-b63e6aa5028dfde3b360945564290de28b47c2d7.zip |
drm: proc: Use minor->index to label things, not PDE->name
Use minor->index to label things, not the name field from the proc_dir_entry
of the /proc/dwm/<minor>/ directory.
Also, use "%u" not "%d" to render the value and use a 12-byte buffer in which
to render the integer, not a 16-byte buffer. The longest string an unsigned
int can give you is 10 chars (4294967295) plus a NUL, so round up to 12 as the
stack is likely to be 4- or 8-byte aligned.
Signed-off-by: David Howells <dhowells@redhat.com>
cc: dri-devel@lists.freedesktop.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'net/ethernet')
0 files changed, 0 insertions, 0 deletions