Deleted Added
full compact
debug.c (234312) debug.c (257029)
1/*
2 * Copyright (c) 2000 Christoph Herrmann, Thomas-Henning von Kamptz
3 * Copyright (c) 1980, 1989, 1993 The Regents of the University of California.
4 * All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * Christoph Herrmann and Thomas-Henning von Kamptz, Munich and Frankfurt.
8 *

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

36 * SUCH DAMAGE.
37 *
38 * $TSHeader: src/sbin/growfs/debug.c,v 1.3 2000/12/12 19:31:00 tomsoft Exp $
39 *
40 */
41
42#ifndef lint
43static const char rcsid[] =
1/*
2 * Copyright (c) 2000 Christoph Herrmann, Thomas-Henning von Kamptz
3 * Copyright (c) 1980, 1989, 1993 The Regents of the University of California.
4 * All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * Christoph Herrmann and Thomas-Henning von Kamptz, Munich and Frankfurt.
8 *

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

36 * SUCH DAMAGE.
37 *
38 * $TSHeader: src/sbin/growfs/debug.c,v 1.3 2000/12/12 19:31:00 tomsoft Exp $
39 *
40 */
41
42#ifndef lint
43static const char rcsid[] =
44 "$FreeBSD: head/sbin/growfs/debug.c 234312 2012-04-15 15:13:29Z trasz $";
44 "$FreeBSD: head/sbin/growfs/debug.c 257029 2013-10-24 00:33:29Z pfg $";
45#endif /* not lint */
46
47#include <sys/param.h>
48
49#include <limits.h>
50#include <stdio.h>
51#include <string.h>
52#include <ufs/ufs/dinode.h>

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

760 fprintf(dbg_log, "birthtime ufs_time_t %10jd\n", ino->di_birthtime);
761 fprintf(dbg_log, "mtimensec int32_t 0x%08x\n", ino->di_mtimensec);
762 fprintf(dbg_log, "atimensec int32_t 0x%08x\n", ino->di_atimensec);
763 fprintf(dbg_log, "ctimensec int32_t 0x%08x\n", ino->di_ctimensec);
764 fprintf(dbg_log, "birthnsec int32_t 0x%08x\n", ino->di_birthnsec);
765 fprintf(dbg_log, "gen int32_t 0x%08x\n", ino->di_gen);
766 fprintf(dbg_log, "kernflags u_int32_t 0x%08x\n", ino->di_kernflags);
767 fprintf(dbg_log, "flags u_int32_t 0x%08x\n", ino->di_flags);
45#endif /* not lint */
46
47#include <sys/param.h>
48
49#include <limits.h>
50#include <stdio.h>
51#include <string.h>
52#include <ufs/ufs/dinode.h>

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

760 fprintf(dbg_log, "birthtime ufs_time_t %10jd\n", ino->di_birthtime);
761 fprintf(dbg_log, "mtimensec int32_t 0x%08x\n", ino->di_mtimensec);
762 fprintf(dbg_log, "atimensec int32_t 0x%08x\n", ino->di_atimensec);
763 fprintf(dbg_log, "ctimensec int32_t 0x%08x\n", ino->di_ctimensec);
764 fprintf(dbg_log, "birthnsec int32_t 0x%08x\n", ino->di_birthnsec);
765 fprintf(dbg_log, "gen int32_t 0x%08x\n", ino->di_gen);
766 fprintf(dbg_log, "kernflags u_int32_t 0x%08x\n", ino->di_kernflags);
767 fprintf(dbg_log, "flags u_int32_t 0x%08x\n", ino->di_flags);
768 fprintf(dbg_log, "extsize int32_t 0x%08x\n", ino->di_extsize);
768 fprintf(dbg_log, "extsize u_int32_t 0x%08x\n", ino->di_extsize);
769
770 /* XXX: What do we do with di_extb[NXADDR]? */
771
772 remaining_blocks = howmany(ino->di_size, sb->fs_bsize); /* XXX ts - +1? */
773 for (ictr = 0; ictr < MIN(NDADDR, remaining_blocks); ictr++) {
774 fprintf(dbg_log, "db ufs2_daddr_t[%x] 0x%16jx\n", ictr,
775 ino->di_db[ictr]);
776 }

--- 65 unchanged lines hidden ---
769
770 /* XXX: What do we do with di_extb[NXADDR]? */
771
772 remaining_blocks = howmany(ino->di_size, sb->fs_bsize); /* XXX ts - +1? */
773 for (ictr = 0; ictr < MIN(NDADDR, remaining_blocks); ictr++) {
774 fprintf(dbg_log, "db ufs2_daddr_t[%x] 0x%16jx\n", ictr,
775 ino->di_db[ictr]);
776 }

--- 65 unchanged lines hidden ---