diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-07-28 11:43:53 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-07-29 15:54:53 +0200 |
commit | 32131a3aaad8f2102698fbd66a308d1d3e500da6 (patch) | |
tree | c3761cdb73c3fbd59559d5253ecc2017bdafd298 /src/shared/bus-util.c | |
parent | 23d5dd168724fe60c7b00d78f49563a6be05627d (diff) | |
download | systemd-32131a3aaad8f2102698fbd66a308d1d3e500da6.tar.gz |
bus-util: convert bus_log_{parse,create}_error into defines
With SYSTEMD_LOG_LOCATION=1, it is much more useful to see the location
where the call to bus_log_{parse,create}_error() was made, rather then
the one-line body of the helper function. Also, it's our internal code,
so having a one-line non-inline function doesn't make much sense anyway.
Diffstat (limited to 'src/shared/bus-util.c')
-rw-r--r-- | src/shared/bus-util.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/shared/bus-util.c b/src/shared/bus-util.c index 8e301250bc..6af115e7aa 100644 --- a/src/shared/bus-util.c +++ b/src/shared/bus-util.c @@ -1480,14 +1480,6 @@ int bus_property_get_ulong( } #endif -int bus_log_parse_error(int r) { - return log_error_errno(r, "Failed to parse bus message: %m"); -} - -int bus_log_create_error(int r) { - return log_error_errno(r, "Failed to create bus message: %m"); -} - /** * bus_path_encode_unique() - encode unique object path * @b: bus connection or NULL |