summaryrefslogtreecommitdiff
path: root/tools/intel_reg_snapshot.c
diff options
context:
space:
mode:
authorThomas Wood <thomas.wood@intel.com>2015-06-08 16:41:34 +0100
committerThomas Wood <thomas.wood@intel.com>2015-06-11 14:48:58 +0100
commitaa75f373978756aba32ac9c009740ac45e2eb180 (patch)
tree0bd25e7521d061d81d338ad409b8d5f4a31e8636 /tools/intel_reg_snapshot.c
parent87f15fc3da374082933aef4d2183f319e596c9ba (diff)
tools: print a warning for tools replaced by intel_reg
Cc: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Diffstat (limited to 'tools/intel_reg_snapshot.c')
-rw-r--r--tools/intel_reg_snapshot.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/intel_reg_snapshot.c b/tools/intel_reg_snapshot.c
index 50dafd6a6..8b097e688 100644
--- a/tools/intel_reg_snapshot.c
+++ b/tools/intel_reg_snapshot.c
@@ -26,6 +26,7 @@
#include <unistd.h>
#include <assert.h>
+#include <stdio.h>
#include "intel_io.h"
#include "intel_chipset.h"
@@ -36,6 +37,9 @@ int main(int argc, char** argv)
int mmio_bar;
int ret;
+ fprintf(stderr, "WARNING: Use of %s has been deprecated and replaced by"
+ " intel_reg.\n", argv[0]);
+
pci_dev = intel_get_pci_device();
devid = pci_dev->device_id;
intel_mmio_use_pci_bar(pci_dev);