[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] Mini-os fbfront.c unused variable complaint
Ian, So like this? I took out the linefeed between the 2 printk in init_xenbus, to save a line of terminal output. (Mercurial foo is our internal number.) Sincerely, John ---- # HG changeset patch # Parent 4b43dc4c31c3daa6ca2544af062044210f7ad189 mini-os: stop compiler complaint about unused variables gcc (GCC) 4.6.2 20111027 (Red Hat 4.6.2-1) complains about unused variables in mini-os drivers Signed-off-by: John McDermott <john.mcdermott@xxxxxxxxxxxx> diff -r 4b43dc4c31c3 extras/mini-os/xenbus/xenbus.c --- a/extras/mini-os/xenbus/xenbus.c Thu Feb 09 09:47:34 2012 -0500 +++ b/extras/mini-os/xenbus/xenbus.c Mon Feb 13 09:50:12 2012 -0500 @@ -328,16 +328,16 @@ static int allocate_xenbus_id(void) void init_xenbus(void) { int err; - printk("Initialising xenbus\n"); - DEBUG("init_xenbus called.\n"); + printk("Initialising xenbus. "); + printk("init_xenbus called.\n"); xenstore_buf = mfn_to_virt(start_info.store_mfn); create_thread("xenstore", xenbus_thread_func, NULL); - DEBUG("buf at %p.\n", xenstore_buf); + printk("buf at %p.\n", xenstore_buf); err = bind_evtchn(start_info.store_evtchn, xenbus_evtchn_handler, NULL); unmask_evtchn(start_info.store_evtchn); - DEBUG("xenbus on irq %d\n", err); + printk("xenbus on irq %d\n", err); } void fini_xenbus(void) @@ -478,7 +478,7 @@ static void xenbus_debug_msg(const char struct xsd_sockmsg *reply; reply = xenbus_msg_reply(XS_DEBUG, 0, req, ARRAY_SIZE(req)); - DEBUG("Got a reply, type %d, id %d, len %d.\n", + printk("Got a reply, type %d, id %d, len %d.\n", reply->type, reply->req_id, reply->len); } On Feb 13, 2012, at 7:43 AM, Ian Campbell wrote: > I think all the DEBUG's reached from "test_xenbus()" can just become > printks -- the calls from test_xenbus don't serve any other purpose than > to print those messages. This includes the DEBUG message at stake here. > > Ian. ---- What is the formal meaning of the one-line program #include "/dev/tty" J.P. McDermott building 12 Code 5542 john.mcdermott@xxxxxxxxxxxx Naval Research Laboratory voice: +1 202.404.8301 Washington, DC 20375, US fax: +1 202.404.7942 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |