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>
This commit is contained in:
Thomas Wood
2015-06-08 16:41:34 +01:00
parent 87f15fc3da
commit aa75f37397
8 changed files with 25 additions and 0 deletions
+4
View File
@@ -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);