]> xenbits.xensource.com Git - osstest/rumprun.git/commitdiff
librumpxen_xendev: xenbus: Remove dependency on <inttypes.h> in "user" code
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 7 Oct 2016 18:00:38 +0000 (19:00 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 7 Oct 2016 18:02:37 +0000 (19:02 +0100)
busdev_user.c is compiled in a minios context which sadly lacks
<inttypes.h>.  Drop it, and change the one use of PRIx32 to a %lx
(fixing the type of the cast, while we're at it).

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
platform/xen/librumpxen_xendev/busdev_user.c

index 3370cc88d639aa94a49001d0495aa6f60e82ecef..8e0f90aeb5b251aca8cd77dd9f2e0609729a2a3f 100644 (file)
@@ -10,8 +10,6 @@
 #include <bmk-rumpuser/core_types.h>
 #include <bmk-rumpuser/rumpuser.h>
 
-#include <inttypes.h>
-
 #include "busdev_user.h"
 
 #define xbd_malloc(sz) (bmk_memalloc((sz), 0, BMK_MEMWHO_RUMPKERN))
@@ -574,8 +572,8 @@ rumpxenbus_dev_user_shutdown(struct rumpxenbus_data_common *dc)
                const struct write_req trans_end_data = { "F", 2 };
                LIST_FOREACH_SAFE(trans, &d->transactions, entry, trans_tmp) {
                        DPRINTF(("/dev/xen/xenbus: close transaction"
-                                " %p %"PRIx32"\n",
-                                trans, (unsigned int)trans->tx_id));
+                                " %p %lx\n",
+                                trans, (unsigned long)trans->tx_id));
                        /* mirrors process_request XS_TRANSACTION_END */
                        trans->destroy.req_type = XS_TRANSACTION_END;
                        trans->destroy.u.trans = trans;