]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: consolidate duplicated error messages in pci.c
authorLaine Stump <laine@laine.org>
Thu, 8 Mar 2012 20:41:53 +0000 (15:41 -0500)
committerLaine Stump <laine@laine.org>
Thu, 8 Mar 2012 21:59:29 +0000 (16:59 -0500)
commitb8e478502a5649c5ad5b9bdda87b33a54e3de93b
tree4930f9d0826ae95332a5016d7ebc45a0e6e399b0
parent7a23ba090dd8a374974d3da0180ea3a6ffdc05fb
util: consolidate duplicated error messages in pci.c

This is nearly identical to an earlier patch for virnetlink.c.

There are special stub versions of all public functions in this file
that are compiled when the platform isn't linux. Each of these
functions had an almost identical message, differing only in the
function name included in the message. Since log messages already
contain the function name, we can just define a const char* with the
common part of the string, and use that same string for all the log
messages.

If nothing else, this at least makes for less strings that need
translating...
src/util/pci.c