Whamcloud - gitweb
LU-3549 llapi: add printf attribute to llapi_{printf,error} 67/6867/9
authorJohn L. Hammond <john.hammond@intel.com>
Tue, 2 Jul 2013 22:06:29 +0000 (17:06 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 3 Sep 2013 05:59:57 +0000 (05:59 +0000)
commit3b18568dc07dac8550c36b33afb45dde2403ea49
treea131914277d477850e5bd0b2c80837c22423f893
parentfa16465704e1497146b461ebe59af420ae79fa9b
LU-3549 llapi: add printf attribute to llapi_{printf,error}

Add printf attributes to llapi_printf and llapi_error for compile time
checking that the format string agrees with the argument list, and
const qualify the format parameter of both functions. Fixup the
mismatched calls to these functions.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Signed-off-by: JC Lafoucriere <jacques-charles.lafoucriere@cea.fr>
Change-Id: Ic8df148abb0bfe8ce72d05d76cb7ce0f1832c28f
Reviewed-on: http://review.whamcloud.com/6867
Tested-by: Hudson
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
lustre/include/lustre/lustreapi.h
lustre/tests/ll_dirstripe_verify.c
lustre/utils/lhsmtool_posix.c
lustre/utils/liblustreapi.c
lustre/utils/liblustreapi_hsm.c