]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfedffeafb701dd87f48caf5b69d56affbe38a27d
treeb23aa171847cd48832f6cd0c10c10a195c2b888e
parente24bc7add1a03ecd203297b1f1b34a660370a2dd
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