Whamcloud - gitweb
LU-4664 libcfs: allow file/func/line passed to CDEBUG() 88/33588/7
authorAndreas Dilger <adilger@whamcloud.com>
Tue, 6 Nov 2018 11:23:00 +0000 (04:23 -0700)
committerOleg Drokin <green@whamcloud.com>
Mon, 11 Feb 2019 03:21:58 +0000 (03:21 +0000)
commit8503e73bd936ce286c8acd069ed3285a0b7533b2
tree5d933650f3b20f95ce960a8e53c5210c22c957e4
parent32e547aa9cb913f5736ee3d58cb79f4e63ce2c0b
LU-4664 libcfs: allow file/func/line passed to CDEBUG()

Allow the file, function, and line number to be passed to CDEBUG()
messages so that they are not duplicated in helper functions that
may be called from multiple places.

This patch is largely a no-op in terms of code, with the exception
of one call in osc_extent_sanity_check0() to OSC_EXTENT_DUMP() that
is changed to OSC_EXTENT_DUMP_WITH_LOC().

Test-Parameters: trivial
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I0bd866b94daff904c16523d11c710f562a3ebbe5
Reviewed-on: https://review.whamcloud.com/33588
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
libcfs/include/libcfs/libcfs_debug.h
libcfs/libcfs/tracefile.h
lustre/osc/osc_cache.c