]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Enhance error message in is() call for unittests
authorEric Bollengier <eric@baculasystems.com>
Fri, 11 Feb 2022 09:38:20 +0000 (10:38 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:56:57 +0000 (13:56 +0200)
bacula/src/lib/unittests.c

index 0eae024b01aae97131a7cc1c16e39777f5c0c44b..5f991a308d23c6b7eb8f4025416740409c900887 100644 (file)
@@ -154,7 +154,7 @@ bool _is(const char *file, int l, const char *op, const char *str, const char *s
    if (!value) {
       err++;
       if (err < 1000) {
-         Pmsg6(-1, "ERR %.80s %s:%i on %s %s == %s\n", label, file, l, op, str, str2);
+         Pmsg6(-1, "ERR %.80s %s:%i on %s [%s] == [%s]\n", label, file, l, op, str, str2);
       } else if (err == 1000) {
          Pmsg0(-1, "ERR Too much errors\n");
       }