]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
xhci: Use %zu for printing size_t type
authorFabio Estevam <festevam@gmail.com>
Wed, 22 May 2019 13:35:29 +0000 (10:35 -0300)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commit92d0bedddbfc2629a54ec287d5b639e81744b409
tree549076aca71fff99bb495bef208bdf6748bb6903
parentd5e194a5d7f3ea3fbae93bf55bef9f08b44943fe
xhci: Use %zu for printing size_t type

BugLink: https://bugs.launchpad.net/bugs/1838700
commit c1a145a3ed9a40f3b6145feb97789e8eb49c5566 upstream.

Commit 597c56e372da ("xhci: update bounce buffer with correct sg num")
caused the following build warnings:

drivers/usb/host/xhci-ring.c:676:19: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'size_t {aka unsigned int}' [-Wformat=]

Use %zu for printing size_t type in order to fix the warnings.

Fixes: 597c56e372da ("xhci: update bounce buffer with correct sg num")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Cc: stable <stable@vger.kernel.org>
Acked-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/usb/host/xhci-ring.c