Whamcloud - gitweb
libquota: quiet log_err() bad format warnings
authorAndreas Dilger <adilger@dilger.ca>
Thu, 29 Nov 2012 12:47:54 +0000 (05:47 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 29 Dec 2012 22:40:45 +0000 (17:40 -0500)
commit0ce0172984c807d3366e8db6e2a2b6ecae314832
treee453b1f0953f0055d63e293ae98267bcf3197ce0
parent00eb0eee0addfd3b7ede98b85e00dff1547838a0
libquota: quiet log_err() bad format warnings

The macro for log_err() was written so that it needed to always
have an argument, but GCC was unhappy to have an argument when
none was specified in the format string.  Use the CPP "##" to
eat the preceeding comma if no argument is specified.

Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/quota/common.h
lib/quota/mkquota.c
lib/quota/quotaio.c
lib/quota/quotaio_tree.c
lib/quota/quotaio_v2.c