<p>Neels Hofmeyr has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/10540">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">use __FILE__, not __BASE_FILE__<br><br>The intention was to use the file's basename, but __BASE_FILE__ means "the root<br>file that is being parsed and contains #include statements".<br><br>If we had a function using __BASE_FILE__ and that was defined in an #included<br>file, __BASE_FILE__ would indicate the first file where the #include is, and<br>not the file where the function is defined. __BASE_FILE__ works for us because<br>we don't ever include function definitions that log something, so __BASE_FILE__<br>always coincides with __FILE__ for our logging; but still __BASE_FILE__ is<br>semantically the wrong constant.<br><br>Related: OS#2740<br>Change-Id: Icdf7af7a31fbba9197b3711eaf102fc0ae333bcc<br>---<br>M include/osmocom/sgsn/gprs_subscriber.h<br>1 file changed, 2 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-sgsn refs/changes/40/10540/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/include/osmocom/sgsn/gprs_subscriber.h b/include/osmocom/sgsn/gprs_subscriber.h</span><br><span>index be78feb..d36db75 100644</span><br><span>--- a/include/osmocom/sgsn/gprs_subscriber.h</span><br><span>+++ b/include/osmocom/sgsn/gprs_subscriber.h</span><br><span>@@ -27,5 +27,5 @@</span><br><span>                                  const char *file, int line);</span><br><span> struct gprs_subscr *_gprs_subscr_put(struct gprs_subscr *gsub,</span><br><span>                               const char *file, int line);</span><br><span style="color: hsl(0, 100%, 40%);">-#define gprs_subscr_get(gsub) _gprs_subscr_get(gsub, __BASE_FILE__, __LINE__)</span><br><span style="color: hsl(0, 100%, 40%);">-#define gprs_subscr_put(gsub) _gprs_subscr_put(gsub, __BASE_FILE__, __LINE__)</span><br><span style="color: hsl(120, 100%, 40%);">+#define gprs_subscr_get(gsub) _gprs_subscr_get(gsub, __FILE__, __LINE__)</span><br><span style="color: hsl(120, 100%, 40%);">+#define gprs_subscr_put(gsub) _gprs_subscr_put(gsub, __FILE__, __LINE__)</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/10540">change 10540</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/10540"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-sgsn </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Icdf7af7a31fbba9197b3711eaf102fc0ae333bcc </div>
<div style="display:none"> Gerrit-Change-Number: 10540 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>