autofs4: clean up uaotfs use of debug/info/warning printouts
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 8 Aug 2011 18:35:17 +0000 (11:35 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 8 Aug 2011 18:35:17 +0000 (11:35 -0700)
commitc3ad996246dc5fd6e3df473c5fc1ba6d53e1d402
treeb23aa171847cd48832f6cd0c10c10a195c2b888e
parent638a8439096c582bdb523fcea9d875d3e1fed38a
autofs4: clean up uaotfs use of debug/info/warning printouts

Use 'pr_debug()' for DPRINTK, which will do the proper type checking on
the arguments (without generating code) even when DEBUG isn't #defined.

Also, use the standard __VA_ARGS__ for the macros, and stop the
pointless abuse of 'do { xyz } while (0)' when the macro is already a
perfectly well-formed single statement.

Reported-by: David Howells <dhowells@redhat.com>
Suggested-by: Joe Perches <joe@perches.com>
Cc: Ian Kent <raven@themaw.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/autofs4/autofs_i.h