Subject: /usr/src/sbin/dkctl/dkctl.c
To: None <current-users@netbsd.org>
From: Kurt Schreiner <ks@ub.uni-mainz.de>
List: current-users
Date: 09/27/2004 19:39:32
Hi,
to make this (cross-)compilable (on i386) for alpha (and sparc64):
# diff -u /u/NetBSD/lsrc/sbin/dkctl/dkctl.c /u/NetBSD/src/sbin/dkctl/dkctl.c
--- /u/NetBSD/lsrc/sbin/dkctl/dkctl.c 2004-09-27 16:37:52.000000000 +0200
+++ /u/NetBSD/src/sbin/dkctl/dkctl.c 2004-09-25 21:57:19.000000000 +0200
@@ -526,7 +526,7 @@
printf("%s at %s: %s\n", dkw.dkw_devname, dkw.dkw_parent,
dkw.dkw_wname); /* XXX Unicode */
- printf("%s: %"PRIu64" blocks at %"PRId64", type: %s\n",
+ printf("%s: %llu blocks at %lld, type: %s\n",
dkw.dkw_devname, dkw.dkw_size, dkw.dkw_offset, dkw.dkw_ptype);
}
@@ -569,7 +569,7 @@
printf("%s: %u wedge%s:\n", dvname, dkwl.dkwl_nwedges,
dkwl.dkwl_nwedges == 1 ? "" : "s");
for (i = 0; i < dkwl.dkwl_nwedges; i++) {
- printf("%s: %s, %"PRIu64" blocks at %"PRId64", type: %s\n",
+ printf("%s: %s, %llu blocks at %lld, type: %s\n",
dkw[i].dkw_devname,
dkw[i].dkw_wname, /* XXX Unicode */
dkw[i].dkw_size, dkw[i].dkw_offset, dkw[i].dkw_ptype);
-kurt