loader: do not print the pci id during normal operation
authorEmil Velikov <emil.l.velikov@gmail.com>
Thu, 23 Jan 2014 17:59:39 +0000 (17:59 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 29 Jan 2014 19:55:02 +0000 (19:55 +0000)
Spamming the pci id is not beneficial. Make sure it's printed
only when needed.

v2: Change severity to _LOADER_DEBUG, rather than removing
the message.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/loader/loader.c

index e61c9d81a16f5ef888c43c9937a42fad494a5256..626046a232bd1b33355f87b06d8123de29388376 100644 (file)
@@ -350,7 +350,7 @@ loader_get_driver_for_fd(int fd, unsigned driver_types)
    }
 
 out:
-   log_(driver ? _LOADER_INFO : _LOADER_WARNING,
+   log_(driver ? _LOADER_DEBUG : _LOADER_WARNING,
          "pci id for fd %d: %04x:%04x, driver %s\n",
          fd, vendor_id, chip_id, driver);
    return driver;