print.c (9b50d9027575220cb6dd09b3e62f03f511e908b8) print.c (4933ffaed9927902d8e810b6989996c0e1221321)
1/*-
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 28 unchanged lines hidden (view full) ---

37
38#include <sys/types.h>
39#include <stdio.h>
40#include "extern.h"
41
42void
43pcrc(fn, val, len)
44 char *fn;
1/*-
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 28 unchanged lines hidden (view full) ---

37
38#include <sys/types.h>
39#include <stdio.h>
40#include "extern.h"
41
42void
43pcrc(fn, val, len)
44 char *fn;
45 u_long val, len;
45 u_int32_t val, len;
46{
46{
47 (void)printf("%lu %lu", val, len);
47 (void)printf("%lu %lu", (u_long) val, (u_long) len);
48 if (fn)
49 (void)printf(" %s", fn);
50 (void)printf("\n");
51}
52
53void
54psum1(fn, val, len)
55 char *fn;
48 if (fn)
49 (void)printf(" %s", fn);
50 (void)printf("\n");
51}
52
53void
54psum1(fn, val, len)
55 char *fn;
56 u_long val, len;
56 u_int32_t val, len;
57{
57{
58 (void)printf("%lu %lu", val, (len + 1023) / 1024);
58 (void)printf("%lu %lu", (u_long) val, (u_long) (len + 1023) / 1024);
59 if (fn)
60 (void)printf(" %s", fn);
61 (void)printf("\n");
62}
63
64void
65psum2(fn, val, len)
66 char *fn;
59 if (fn)
60 (void)printf(" %s", fn);
61 (void)printf("\n");
62}
63
64void
65psum2(fn, val, len)
66 char *fn;
67 u_long val, len;
67 u_int32_t val, len;
68{
68{
69 (void)printf("%lu %lu", val, (len + 511) / 512);
69 (void)printf("%lu %lu", (u_long) val, (u_long) (len + 511) / 512);
70 if (fn)
71 (void)printf(" %s", fn);
72 (void)printf("\n");
73}
70 if (fn)
71 (void)printf(" %s", fn);
72 (void)printf("\n");
73}