summaryrefslogtreecommitdiff
path: root/src/lib/debug.c
diff options
context:
space:
mode:
authorLee Leahy <leroy.p.leahy@intel.com>2017-03-08 16:34:12 -0800
committerLee Leahy <leroy.p.leahy@intel.com>2017-03-09 17:24:17 +0100
commit75b859978a6b1901301f4ee0b53de84d3d83bd0a (patch)
tree1598ea4583355b52a86c71c471993e700b2f1ef2 /src/lib/debug.c
parenteaee1d8a5f6a5a70f7bdf10825e047c0529d5157 (diff)
downloadcoreboot-75b859978a6b1901301f4ee0b53de84d3d83bd0a.tar.xz
src/lib: Add "int" following "unsigned"
Fix the following warning detected by checkpatch.pl: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' The remaining 37 warnings in gcov-io.c and libgcov.c are all false positives generated by checkpatch detecting a symbol or function name ending in _unsigned. TEST=Build and run on Galileo Gen2 Change-Id: I9f1b71993caca8b3eb3f643525534a937d365ab3 Signed-off-by: Lee Leahy <Leroy.P.Leahy@intel.com> Reviewed-on: https://review.coreboot.org/18695 Tested-by: build bot (Jenkins) Reviewed-by: Philippe Mathieu-Daudé <philippe.mathieu.daude@gmail.com> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'src/lib/debug.c')
-rw-r--r--src/lib/debug.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/debug.c b/src/lib/debug.c
index aa94bb02b8..6ae598532c 100644
--- a/src/lib/debug.c
+++ b/src/lib/debug.c
@@ -14,7 +14,7 @@
* GNU General Public License for more details.
*/
-static void print_debug_pci_dev(unsigned dev)
+static void print_debug_pci_dev(unsigned int dev)
{
printk(BIOS_DEBUG, "PCI: %02x:%02x.%x",
(dev >> 16) & 0xff, (dev >> 11) & 0x1f, (dev >> 8) & 7);
@@ -37,7 +37,7 @@ static inline void print_pci_devices(void)
}
}
-static void dump_pci_device(unsigned dev)
+static void dump_pci_device(unsigned int dev)
{
int i;
print_debug_pci_dev(dev);
@@ -71,7 +71,7 @@ static inline void dump_pci_devices(void)
}
-static inline void dump_io_resources(unsigned port)
+static inline void dump_io_resources(unsigned int port)
{
int i;
printk(BIOS_DEBUG, "%04x:\n", port);