Date: Wed, 23 May 2012 17:49:59 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r235849 - head/sys/geom Message-ID: <201205231750.q4NHo0kJ087060@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: delphij Date: Wed May 23 17:49:59 2012 New Revision: 235849 URL: http://svn.freebsd.org/changeset/base/235849 Log: Use %j and cast off_t to intmax_t for now to fix build. Noticed by: bz Modified: head/sys/geom/geom_flashmap.c Modified: head/sys/geom/geom_flashmap.c ============================================================================== --- head/sys/geom/geom_flashmap.c Wed May 23 17:13:30 2012 (r235848) +++ head/sys/geom/geom_flashmap.c Wed May 23 17:49:59 2012 (r235849) @@ -78,8 +78,8 @@ static void g_flashmap_print(struct g_flashmap_slice *slice) { - printf("%08llx-%08llx: %s (%lluKB)\n", slice->sl_start, slice->sl_end, - slice->sl_name, (slice->sl_end - slice->sl_start) / 1024); + printf("%08jx-%08jx: %s (%lluKB)\n", (intmax_t)slice->sl_start, (intmax_t)slice->sl_end, + slice->sl_name, (uintmax_t)(slice->sl_end - slice->sl_start) / 1024); } static int
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201205231750.q4NHo0kJ087060>