X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=test%2Fapi%2Ftestlib.c;h=0791d45ad01bf8befadc6eab984f448c380df85f;hb=7ccc68c77eb208c2070c7939d9a41a33254934c5;hp=277db44d200cb2182a6773834fffa2568d77ee71;hpb=c526dc6d25a789a3b4762ac4d8962ef1b20dde02;p=idzebra-moved-to-github.git diff --git a/test/api/testlib.c b/test/api/testlib.c index 277db44..0791d45 100644 --- a/test/api/testlib.c +++ b/test/api/testlib.c @@ -492,8 +492,9 @@ ZEBRA_RES tl_fetch_compare(ZebraHandle zh, res = ZEBRA_FAIL; if (res == ZEBRA_FAIL) { + int l = rec_len; yaz_log(YLOG_LOG, "Expected: %s", cmp_rec); - yaz_log(YLOG_LOG, "Got: %.*s", rec_len, rec_buf); + yaz_log(YLOG_LOG, "Got: %.*s", l, rec_buf); } } odr_destroy(odr);