From 32f6d75cdb1fd1813854223762178cfb45084478 Mon Sep 17 00:00:00 2001 From: Christian Helmuth Date: Thu, 23 Jan 2014 09:40:10 +0100 Subject: [PATCH] Fix compiler warnings --- dde_linux/src/lib/lxip/lxc_emul.c | 4 ++-- dde_linux/src/lib/usb/storage/storage.cc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dde_linux/src/lib/lxip/lxc_emul.c b/dde_linux/src/lib/lxip/lxc_emul.c index ad62c313b..8e0f3d554 100644 --- a/dde_linux/src/lib/lxip/lxc_emul.c +++ b/dde_linux/src/lib/lxip/lxc_emul.c @@ -56,14 +56,14 @@ struct kmem_cache *kmem_cache_create(const char *name, size_t size, size_t align void *kmem_cache_alloc_node(struct kmem_cache *cache, gfp_t flags, int node) { - dde_kit_log(DEBUG_SLAB, "\"%s\" alloc obj_size=%zd", cache->name,cache->size); + dde_kit_log(DEBUG_SLAB, "\"%s\" alloc obj_size=%u", cache->name,cache->size); return kmalloc(cache->size, 0); } void *kmem_cache_alloc(struct kmem_cache *cache, gfp_t flags) { - dde_kit_log(DEBUG_SLAB, "\"%s\" alloc obj_size=%zd", cache->name,cache->size); + dde_kit_log(DEBUG_SLAB, "\"%s\" alloc obj_size=%u", cache->name,cache->size); return kmalloc(cache->size, 0); } diff --git a/dde_linux/src/lib/usb/storage/storage.cc b/dde_linux/src/lib/usb/storage/storage.cc index a6b517b7a..70a3fb0ce 100644 --- a/dde_linux/src/lib/usb/storage/storage.cc +++ b/dde_linux/src/lib/usb/storage/storage.cc @@ -94,7 +94,7 @@ class Storage_device : public Genode::List::Element, throw Io_error(); if (verbose) - PDBG("PACKET: phys: %lx block: %llu count: %u %s", + PDBG("PACKET: phys: %lx block: %llu count: %zu %s", phys, block_nr, block_count, read ? "read" : "write"); struct scsi_cmnd *cmnd = _scsi_alloc_command();