summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGongYuJian <gongyujian@acoinfo.com>2018-03-17 23:35:23 +0800
committerGongYuJian <gongyujian@acoinfo.com>2018-03-17 23:35:23 +0800
commit9c2a30be50a831a00ed866e18f8745a9c0f69918 (patch)
tree626dcd02490c31f73d23f9e9909a91b7e61a9835
parent96d20f912cdf88a5fe9cd52d7a3602655bd3d2d4 (diff)
downloadpciutils-sylixos-port.tar.gz
Added PCI_HAVE_PM_DUMP.sylixos-port
-rw-r--r--common.c12
-rw-r--r--pciutils.h2
2 files changed, 7 insertions, 7 deletions
diff --git a/common.c b/common.c
index f3cf1d7..c5a3c8f 100644
--- a/common.c
+++ b/common.c
@@ -1,7 +1,7 @@
/*
* The PCI Utilities -- Common Functions
*
- * Copyright (c) 1997--2008 Martin Mares <mj@ucw.cz>
+ * Copyright (c) 1997--2016 Martin Mares <mj@ucw.cz>
*
* Can be freely distributed and used under the terms of the GNU GPL.
*/
@@ -31,7 +31,7 @@ xmalloc(size_t howmuch)
{
void *p = malloc(howmuch);
if (!p)
- die("Unable to allocate %d bytes of memory", howmuch);
+ die("Unable to allocate %d bytes of memory", (int) howmuch);
return p;
}
@@ -40,7 +40,7 @@ xrealloc(void *ptr, size_t howmuch)
{
void *p = realloc(ptr, howmuch);
if (!p)
- die("Unable to allocate %d bytes of memory", howmuch);
+ die("Unable to allocate %d bytes of memory", (int) howmuch);
return p;
}
@@ -106,11 +106,11 @@ parse_generic_option(int i, struct pci_access *pacc, char *arg)
#ifdef PCI_HAVE_PM_INTEL_CONF
case 'H':
if (!strcmp(arg, "1"))
- pacc->method = PCI_ACCESS_I386_TYPE1;
+ pacc->method = PCI_ACCESS_I386_TYPE1;
else if (!strcmp(arg, "2"))
- pacc->method = PCI_ACCESS_I386_TYPE2;
+ pacc->method = PCI_ACCESS_I386_TYPE2;
else
- die("Unknown hardware configuration type %s", arg);
+ die("Unknown hardware configuration type %s", arg);
break;
#endif
#ifdef PCI_HAVE_PM_DUMP
diff --git a/pciutils.h b/pciutils.h
index 9222912..3c5fac6 100644
--- a/pciutils.h
+++ b/pciutils.h
@@ -1,7 +1,7 @@
/*
* The PCI Utilities -- Declarations
*
- * Copyright (c) 1997--2008 Martin Mares <mj@ucw.cz>
+ * Copyright (c) 1997--2018 Martin Mares <mj@ucw.cz>
*
* Can be freely distributed and used under the terms of the GNU GPL.
*/