OSDN Git Service

xfs: trace xfs_name strings correctly
authorChristoph Hellwig <hch@infradead.org>
Tue, 28 Feb 2012 11:01:40 +0000 (11:01 +0000)
committerBen Myers <bpm@sgi.com>
Mon, 26 Mar 2012 18:58:48 +0000 (13:58 -0500)
commitf616137519feb17b849894fcbe634a021d3fa7db
treeefa0007b9141ee85f65980e3731bb02f18dcb4bc
parentc999a223c2f0d31c64ef7379814cea1378b2b800
xfs: trace xfs_name strings correctly

Strings store in an xfs_name structure are often not NUL terminated,
print them using the correct printf specifiers that make use of the
string length store in the xfs_name structure.

Reported-by: Brian Candler <B.Candler@pobox.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_trace.h