Fix for Solaris compile/output for VBDs in xentop.

Signed-off-by: John Levon <john.levon@sun.com>
This commit is contained in:
kfraser@localhost.localdomain committed 2007-02-27 16:13:08 +00:00
1 parent 8ca1a72e79
commit a2d9dd3374
1 file changed
+12 -4
+12 -4
View File
@@ -916,11 +916,19 @@ void do_vbd(xenstat_domain *domain)
num_vbds = xenstat_domain_num_vbds(domain);
for (i=0 ; i< num_vbds; i++) {
char details[20];
vbd = xenstat_domain_vbd(domain,i);
print("VBD %4d [%2x:%2x] OO: %8llu RD: %8llu WR: %8llu\n",
xenstat_vbd_dev(vbd),
MAJOR(xenstat_vbd_dev(vbd)), MINOR(xenstat_vbd_dev(vbd)),
#ifdef __sun__
details[0] = '\0';
#else
snprintf(details, 20, "[%2x:%2x] ", MAJOR(xenstat_vbd_dev(vbd)),
MINOR(xenstat_vbd_dev(vbd)));
#endif
print("VBD %4d %s OO: %8llu RD: %8llu WR: %8llu\n",
xenstat_vbd_dev(vbd), details,
xenstat_vbd_oo_reqs(vbd),
xenstat_vbd_rd_reqs(vbd),
xenstat_vbd_wr_reqs(vbd));
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.