]> git.michaelhowe.org Git - packages/o/openafs.git/commit
aklog: Use a function to print debug statements
authorSimon Wilkinson <sxw@your-file-system.com>
Fri, 12 Feb 2010 11:54:17 +0000 (11:54 +0000)
committerDerrick Brashear <shadow@dementia.org>
Wed, 17 Feb 2010 17:08:00 +0000 (09:08 -0800)
commit267ccb986c850b2a8f4431fa210b6c7f1c09021b
tree372336e4fe6a173c5b4a1c6f83df2d044c52d041
parent7cdc89edca112870f5e9dcb27cbb4cd5551ae7a4
aklog: Use a function to print debug statements

aklog was scattered with things like
    if (dflag) {
printf("Oh no, the world is ending\n");
    }

Simplify these by adding a dprintf() function, which only prints its
arguments if dflag is defined. Use this throughout the code.

Change-Id: I673942e9ea6a8b96ea9d11a608cfaeaf00098b88
Reviewed-on: http://gerrit.openafs.org/1324
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/aklog/aklog.c