147799Sbostic /*-
2*61940Sbostic * Copyright (c) 1991, 1993
3*61940Sbostic * The Regents of the University of California. All rights reserved.
447799Sbostic *
547799Sbostic * %sccs.include.redist.c%
647799Sbostic */
747799Sbostic
847799Sbostic #ifndef lint
9*61940Sbostic static char sccsid[] = "@(#)print.c 8.1 (Berkeley) 06/06/93";
1047799Sbostic #endif /* not lint */
1147799Sbostic
1247799Sbostic #include <sys/types.h>
1347799Sbostic #include <stdio.h>
1447799Sbostic #include "extern.h"
1547799Sbostic
1647799Sbostic void
pcrc(fn,val,len)1747799Sbostic pcrc(fn, val, len)
1847799Sbostic char *fn;
1947799Sbostic u_long val, len;
2047799Sbostic {
2151820Sbostic (void)printf("%lu %lu", val, len);
2251820Sbostic if (fn)
2351820Sbostic (void)printf(" %s", fn);
2451820Sbostic (void)printf("\n");
2547799Sbostic }
2647799Sbostic
2747799Sbostic void
psum1(fn,val,len)2847799Sbostic psum1(fn, val, len)
2947799Sbostic char *fn;
3047799Sbostic u_long val, len;
3147799Sbostic {
3251820Sbostic (void)printf("%lu %lu", val, (len + 1023) / 1024);
3351820Sbostic if (fn)
3451820Sbostic (void)printf(" %s", fn);
3551820Sbostic (void)printf("\n");
3647799Sbostic }
3747799Sbostic
3847799Sbostic void
psum2(fn,val,len)3947799Sbostic psum2(fn, val, len)
4047799Sbostic char *fn;
4147799Sbostic u_long val, len;
4247799Sbostic {
4351820Sbostic (void)printf("%lu %lu", val, (len + 511) / 512);
4451820Sbostic if (fn)
4551820Sbostic (void)printf(" %s", fn);
4651820Sbostic (void)printf("\n");
4747799Sbostic }
48