Date: Tue, 26 May 2009 14:15:06 +0000 (UTC) From: Ulf Lilleengen <lulf@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r192808 - head/sys/geom Message-ID: <200905261415.n4QEF64s060568@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: lulf Date: Tue May 26 14:15:06 2009 New Revision: 192808 URL: http://svn.freebsd.org/changeset/base/192808 Log: - Unbreak 64 bit platforms by casting off_t to intmax. Modified: head/sys/geom/geom_subr.c Modified: head/sys/geom/geom_subr.c ============================================================================== --- head/sys/geom/geom_subr.c Tue May 26 14:13:12 2009 (r192807) +++ head/sys/geom/geom_subr.c Tue May 26 14:15:06 2009 (r192808) @@ -1310,11 +1310,11 @@ DB_SHOW_COMMAND(bio, db_show_bio) db_print_bio_flags(bp); db_printf(" cflags: 0x%hhx\n", bp->bio_cflags); db_printf(" pflags: 0x%hhx\n", bp->bio_pflags); - db_printf(" offset: %lld\n", bp->bio_offset); - db_printf(" length: %lld\n", bp->bio_length); + db_printf(" offset: %jd\n", (intmax_t)bp->bio_offset); + db_printf(" length: %jd\n", (intmax_t)bp->bio_length); db_printf(" bcount: %ld\n", bp->bio_bcount); db_printf(" resid: %ld\n", bp->bio_resid); - db_printf(" completed: %lld\n", bp->bio_completed); + db_printf(" completed: %jd\n", (intmax_t)bp->bio_completed); db_printf(" children: %u\n", bp->bio_children); db_printf(" inbed: %u\n", bp->bio_inbed); db_printf(" error: %d\n", bp->bio_error);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905261415.n4QEF64s060568>