Merge tag 'fixes-v5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/brauner...
[sfrench/cifs-2.6.git] / net / core / net-sysfs.c
index 8d4128d59655be9024e10449d61bf21117449db6..999b70c59761d8f08429306da0c377d83d8a1b53 100644 (file)
@@ -1158,8 +1158,8 @@ static ssize_t traffic_class_show(struct netdev_queue *queue,
         * belongs to the root device it will be reported with just the
         * traffic class, so just "0" for TC 0 for example.
         */
-       return dev->num_tc < 0 ? sprintf(buf, "%u%d\n", tc, dev->num_tc) :
-                                sprintf(buf, "%u\n", tc);
+       return dev->num_tc < 0 ? sprintf(buf, "%d%d\n", tc, dev->num_tc) :
+                                sprintf(buf, "%d\n", tc);
 }
 
 #ifdef CONFIG_XPS