diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-06-07 15:00:47 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-07-04 10:36:00 +0200 |
commit | 62c6bbbc0993e34ede5c4266c68982c995b7b421 (patch) | |
tree | bbec59c3b915461682208ece94ff35a73aebb429 /src/network | |
parent | basic/log: add a define for path relative to source root (diff) | |
download | systemd-62c6bbbc0993e34ede5c4266c68982c995b7b421.tar.xz systemd-62c6bbbc0993e34ede5c4266c68982c995b7b421.zip |
tree-wide: use PROJECT_FILE instead of __FILE__
This replaces the internal uses of __FILE__ with the new macro.
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/netdev/netdev.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/netdev/netdev.h b/src/network/netdev/netdev.h index 57fabbef40..e8a00cd4b7 100644 --- a/src/network/netdev/netdev.h +++ b/src/network/netdev/netdev.h @@ -192,8 +192,8 @@ const struct ConfigPerfItem* network_netdev_gperf_lookup(const char *key, GPERF_ #define log_netdev_full(netdev, level, error, ...) \ ({ \ const NetDev *_n = (netdev); \ - _n ? log_object_internal(level, error, __FILE__, __LINE__, __func__, "INTERFACE=", _n->ifname, NULL, NULL, ##__VA_ARGS__) : \ - log_internal(level, error, __FILE__, __LINE__, __func__, ##__VA_ARGS__); \ + _n ? log_object_internal(level, error, PROJECT_FILE, __LINE__, __func__, "INTERFACE=", _n->ifname, NULL, NULL, ##__VA_ARGS__) : \ + log_internal(level, error, PROJECT_FILE, __LINE__, __func__, ##__VA_ARGS__); \ }) #define log_netdev_debug(netdev, ...) log_netdev_full(netdev, LOG_DEBUG, 0, ##__VA_ARGS__) |