diff options
author | David Tardon <dtardon@redhat.com> | 2022-06-24 09:59:44 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2022-06-28 12:50:44 +0200 |
commit | 28e5e1e97f47067bce190ea6b3404907d63e4320 (patch) | |
tree | 5d008272d08a98fd87b7f4690372cd98f668150d /src/nss-resolve | |
parent | tree-wide: allow ASCII fallback for → in logs (diff) | |
download | systemd-28e5e1e97f47067bce190ea6b3404907d63e4320.tar.xz systemd-28e5e1e97f47067bce190ea6b3404907d63e4320.zip |
tree-wide: allow ASCII fallback for … in logs
Diffstat (limited to 'src/nss-resolve')
-rw-r--r-- | src/nss-resolve/nss-resolve.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nss-resolve/nss-resolve.c b/src/nss-resolve/nss-resolve.c index e857d42db6..9ed2945a1e 100644 --- a/src/nss-resolve/nss-resolve.c +++ b/src/nss-resolve/nss-resolve.c @@ -10,6 +10,7 @@ #include "env-util.h" #include "errno-util.h" +#include "glyph-util.h" #include "in-addr-util.h" #include "macro.h" #include "nss-util.h" @@ -180,7 +181,9 @@ static int json_dispatch_address(const char *name, JsonVariant *variant, JsonDis b = json_variant_integer(i); if (b < 0 || b > 0xff) - return json_log(variant, flags, SYNTHETIC_ERRNO(EINVAL), "Element %zu of JSON field '%s' is out of range 0…255.", k, strna(name)); + return json_log(variant, flags, SYNTHETIC_ERRNO(EINVAL), + "Element %zu of JSON field '%s' is out of range 0%s255.", + k, strna(name), special_glyph(SPECIAL_GLYPH_ELLIPSIS)); buf.bytes[k++] = (uint8_t) b; } |