mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-13 02:46:23 +00:00
tools/intel_stepping: fixup new warnings
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
faf3dd1135
commit
bd811d2d39
@ -35,7 +35,7 @@
|
|||||||
#include "intel_gpu_tools.h"
|
#include "intel_gpu_tools.h"
|
||||||
|
|
||||||
static void
|
static void
|
||||||
print_clock(char *name, int clock) {
|
print_clock(const char *name, int clock) {
|
||||||
if (clock == -1)
|
if (clock == -1)
|
||||||
printf("%s clock: unknown", name);
|
printf("%s clock: unknown", name);
|
||||||
else
|
else
|
||||||
@ -167,14 +167,14 @@ print_clock_info(struct pci_device *pci_dev)
|
|||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
struct pci_device *dev, *bridge;
|
struct pci_device *dev, *bridge;
|
||||||
int err;
|
int error;
|
||||||
uint8_t stepping;
|
uint8_t stepping;
|
||||||
char *step_desc = "??";
|
const char *step_desc = "??";
|
||||||
|
|
||||||
err = pci_system_init();
|
error = pci_system_init();
|
||||||
if (err != 0) {
|
if (error != 0) {
|
||||||
fprintf(stderr, "Couldn't initialize PCI system: %s\n",
|
fprintf(stderr, "Couldn't initialize PCI system: %s\n",
|
||||||
strerror(err));
|
strerror(error));
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -183,10 +183,10 @@ int main(int argc, char **argv)
|
|||||||
if (dev == NULL)
|
if (dev == NULL)
|
||||||
errx(1, "Couldn't find graphics card");
|
errx(1, "Couldn't find graphics card");
|
||||||
|
|
||||||
err = pci_device_probe(dev);
|
error = pci_device_probe(dev);
|
||||||
if (err != 0) {
|
if (error != 0) {
|
||||||
fprintf(stderr, "Couldn't probe graphics card: %s\n",
|
fprintf(stderr, "Couldn't probe graphics card: %s\n",
|
||||||
strerror(err));
|
strerror(error));
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -197,10 +197,10 @@ int main(int argc, char **argv)
|
|||||||
if (dev == NULL)
|
if (dev == NULL)
|
||||||
errx(1, "Couldn't bridge");
|
errx(1, "Couldn't bridge");
|
||||||
|
|
||||||
err = pci_device_cfg_read_u8(bridge, &stepping, 8);
|
error = pci_device_cfg_read_u8(bridge, &stepping, 8);
|
||||||
if (err != 0) {
|
if (error != 0) {
|
||||||
fprintf(stderr, "Couldn't read revision ID: %s\n",
|
fprintf(stderr, "Couldn't read revision ID: %s\n",
|
||||||
strerror(err));
|
strerror(error));
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user