Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Problems with sys/arch/xen/xen/xbdback_xenbus.c



Hello
I got errors while compiling a kernel
    compile  XEN3_DOM0/xbdback_xenbus.o
cc1: warnings being treated as errors
/n4/usr/src/sys/arch/xen/xen/xbdback_xenbus.c: In function
'xbdback_xenbus_destroy':
/n4/usr/src/sys/arch/xen/xen/xbdback_xenbus.c:430: warning: format
'%d' expects type 'int', but argument 3 has type 'long long unsigned
int'
/n4/usr/src/sys/arch/xen/xen/xbdback_xenbus.c: In function
'xbdback_backend_changed':
/n4/usr/src/sys/arch/xen/xen/xbdback_xenbus.c:715: warning: format
'%d' expects type 'int', but argument 3 has type 'long long unsigned
int'
--- xbdback_xenbus.o ---
*** [xbdback_xenbus.o] Error code 1

and i have no idea how to fix it so just commented the offending stuff out.

--- sys/arch/xen/xen/org\xbdback_xenbus.c       2009-01-21 20:04:32 +0000
+++ sys/arch/xen/xen/xbdback_xenbus.c   2008-03-22 09:40:12 +0000
@@ -423,11 +423,13 @@
        }
        /* close device */
        if (xbdi->xbdi_size) {
+#if 0
                printf("xbd backend: detach device %s%"PRId32"%c for domain 
%d\n",
                    devsw_blk2name(major(xbdi->xbdi_dev)),
                    DISKUNIT(xbdi->xbdi_dev),
                    (char)DISKPART(xbdi->xbdi_dev) + 'a',
                    xbdi->xbdi_domid);
+#endif
                vn_close(xbdi->xbdi_vp, FREAD, NOCRED);
        }
        SLIST_REMOVE(&xbdback_instances, xbdi, xbdback_instance, next);
@@ -708,11 +710,13 @@
                        return;
                }
                xbdi->xbdi_size = dpart.part->p_size;
+#if 0
                printf("xbd backend: attach device %s%"PRId32
                    "%c (size %" PRIu64 ") for domain %d\n",
                    devname, DISKUNIT(xbdi->xbdi_dev),
                    (char)DISKPART(xbdi->xbdi_dev) + 'a', xbdi->xbdi_size,
                    xbdi->xbdi_domid);
+#endif
        }
 again:
        xbt = xenbus_transaction_start();


Home | Main Index | Thread Index | Old Index