]> git.karo-electronics.de Git - karo-tx-linux.git/commit
target/user: Fix size_t format-spec build warning
authorNicholas Bellinger <nab@linux-iscsi.org>
Sun, 28 Feb 2016 02:25:22 +0000 (18:25 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sat, 5 Mar 2016 07:36:13 +0000 (23:36 -0800)
commit27d5306db06e83db83a70da0644b4ed0a6d07af2
tree5faf09229b9de529cb24b5ef1d812a60b6a8bb0a
parentdbfc15a5feed8d41ed056713774b16df0e15f287
target/user: Fix size_t format-spec build warning

Fix the following printk size_t warning as per 0-day build:

All warnings (new ones prefixed by >>):

   drivers/target/target_core_user.c: In function 'is_ring_space_avail':
>> drivers/target/target_core_user.c:385:12: warning: format '%lu'
>> expects argument of type 'long unsigned int', but argument 3 has type
>> 'size_t {aka unsigned int}' [-Wformat=]
      pr_debug("no data space: only %lu available, but ask for %lu\n",
               ^

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_user.c