X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fgrs1disp.c;h=1fd2727d5e72dba52a8fc4d96c866c40e0fb3d95;hp=3f6b5407abb366bb6e4583b71a881783d506ad0d;hb=9f11f349958f122419856006d9295eb0ce41274d;hpb=88d3bedf772316f87e1996f655ccf8d1e2589755 diff --git a/src/grs1disp.c b/src/grs1disp.c index 3f6b540..1fd2727 100644 --- a/src/grs1disp.c +++ b/src/grs1disp.c @@ -22,13 +22,14 @@ static void display_variant(WRBUF w, Z_Variant *v, int level) for (i = 0; i < v->num_triples; i++) { - printf("%*sclass=" ODR_INT_PRINTF ",type=" ODR_INT_PRINTF, - level * 4, "", *v->triples[i]->zclass, - *v->triples[i]->type); + wrbuf_printf(w, "%*sclass=" ODR_INT_PRINTF ",type=" ODR_INT_PRINTF, + level * 4, "", *v->triples[i]->zclass, + *v->triples[i]->type); if (v->triples[i]->which == Z_Triple_internationalString) - printf(",value=%s\n", v->triples[i]->value.internationalString); + wrbuf_printf(w, ",value=%s\n", + v->triples[i]->value.internationalString); else - printf("\n"); + wrbuf_printf(w, "\n"); } } @@ -48,7 +49,7 @@ static void display_grs1(WRBUF w, Z_GenericRecord *r, int level) t = r->elements[i]; wrbuf_printf(w, "("); if (t->tagType) - wrbuf_printf(w, ODR_INT_PRINTF, *t->tagType); + wrbuf_printf(w, ODR_INT_PRINTF ",", *t->tagType); else wrbuf_printf(w, "?,"); if (t->tagValue->which == Z_StringOrNumeric_numeric) @@ -122,7 +123,7 @@ static void display_grs1(WRBUF w, Z_GenericRecord *r, int level) void yaz_display_grs1(WRBUF wrbuf, Z_GenericRecord *r, int flags) { - display_grs1 (wrbuf, r, 0); + display_grs1(wrbuf, r, 0); } /*