From: Adam Dickmeiss Date: Wed, 20 Apr 2005 13:17:29 +0000 (+0000) Subject: Use XML comments for for meta info. X-Git-Tag: YAZ.2.1.4~9 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=163d307ad18c694b07f18da8071b517e6cd2095a;p=yaz-moved-to-github.git Use XML comments for for meta info. --- diff --git a/util/marcdump.c b/util/marcdump.c index 82377b3..ca9b324 100644 --- a/util/marcdump.c +++ b/util/marcdump.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: marcdump.c,v 1.29 2005-04-20 13:04:04 adam Exp $ + * $Id: marcdump.c,v 1.30 2005-04-20 13:17:29 adam Exp $ */ #if HAVE_CONFIG_H @@ -200,7 +200,7 @@ int main (int argc, char **argv) if (r < 5) { if (r && print_offset && verbose) - printf ("Extra %d bytes at end of file", r); + printf ("\n", r); break; } while (*buf < '0' || *buf > '9') @@ -208,8 +208,8 @@ int main (int argc, char **argv) int i; long off = ftell(inf) - 5; if (verbose || print_offset) - printf("Skipping bad byte %d (0x%02X) at offset " - "%ld (0x%lx)\n", + printf("\n", *buf & 0xff, *buf & 0xff, off, off); for (i = 0; i<4; i++) @@ -221,14 +221,14 @@ int main (int argc, char **argv) if (r < 1) { if (verbose || print_offset) - printf ("End of file with extra garbage\n"); + printf ("\n"); break; } if (print_offset) { long off = ftell(inf) - 5; - printf ("Record %d offset %ld (0x%lx)\n", num, - off, off); + printf ("\n", + num, off, off); } len = atoi_n(buf, 5); if (len < 25 || len > 100000) @@ -302,6 +302,8 @@ int main (int argc, char **argv) fprintf (cfile, "\"\n"); } num++; + if (verbose) + printf("\n"); } count++; if (cd)