path: root/contrib
diff options
authorNeels Hofmeyr <neels@hofmeyr.de>2018-08-20 12:42:00 +0200
committerHarald Welte <laforge@gnumonks.org>2018-08-20 20:23:35 +0000
commit84c6ec6f17c17749a45a132070e87484db52a30b (patch)
tree926272b06a07ade20ea88911e6aca6076245e8cf /contrib
parentc19817bce7747eaef03b1a2f4e7f9d0133836595 (diff)
use __FILE__, not __BASE_FILE__
The intention was to use the file's basename, but __BASE_FILE__ means "the root file that is being parsed and contains #include statements". If we had a function using __BASE_FILE__ and that was defined in an #included file, __BASE_FILE__ would indicate the first file where the #include is, and not the file where the function is defined. __BASE_FILE__ works for us because we don't ever include function definitions that log something, so __BASE_FILE__ always coincides with __FILE__ for our logging; but still __BASE_FILE__ is semantically the wrong constant. Related: OS#2740 Change-Id: Icdf7af7a31fbba9197b3711eaf102fc0ae333bcc
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions