All of lore.kernel.org
 help / color / mirror / Atom feed
* [chrome-os:chromeos-5.10 14450/15358] drivers/usb/host/xhci-mtk-sch.c:83:2: warning: %d in format string (no. 7) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
@ 2021-06-30 22:33 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-06-30 22:33 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 2576 bytes --]

CC: kbuild-all(a)lists.01.org
TO: cros-kernel-buildreports(a)googlegroups.com
TO: Guenter Roeck <groeck@google.com>

tree:   https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.10
head:   e7fd97a9db5fa15cbdf7d93ec30726e4362b1fb1
commit: 6c5dbd50cb0a10ba33dad42a54e1d6bac7b6e1bc [14450/15358] UPSTREAM: usb: xhci-mtk: print debug info of endpoint interval
:::::: branch date: 4 hours ago
:::::: commit date: 9 days ago
compiler: m68k-linux-gcc (GCC) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>


vim +83 drivers/usb/host/xhci-mtk-sch.c

0cbd4b34cda9df Chunfeng Yun 2015-11-24  66  
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08  67  static const char *
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08  68  decode_ep(struct usb_host_endpoint *ep, enum usb_device_speed speed)
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08  69  {
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08  70  	static char buf[DBG_BUF_EN];
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08  71  	struct usb_endpoint_descriptor *epd = &ep->desc;
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08  72  	unsigned int interval;
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08  73  	const char *unit;
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08  74  
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08  75  	interval = usb_decode_interval(epd, speed);
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08  76  	if (interval % 1000) {
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08  77  		unit = "us";
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08  78  	} else {
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08  79  		unit = "ms";
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08  80  		interval /= 1000;
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08  81  	}
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08  82  
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08 @83  	snprintf(buf, DBG_BUF_EN, "%s ep%d%s %s, mpkt:%d, interval:%d/%d%s\n",
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08  84  		 usb_speed_string(speed), usb_endpoint_num(epd),
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08  85  		 usb_endpoint_dir_in(epd) ? "in" : "out",
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08  86  		 usb_ep_type_string(usb_endpoint_type(epd)),
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08  87  		 usb_endpoint_maxp(epd), epd->bInterval, interval, unit);
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08  88  
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08  89  	return buf;
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08  90  }
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08  91  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-30 22:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-30 22:33 [chrome-os:chromeos-5.10 14450/15358] drivers/usb/host/xhci-mtk-sch.c:83:2: warning: %d in format string (no. 7) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.