diff options
author | Thomas Wood <thomas.wood@intel.com> | 2015-06-08 16:41:34 +0100 |
---|---|---|
committer | Thomas Wood <thomas.wood@intel.com> | 2015-06-11 14:48:58 +0100 |
commit | aa75f373978756aba32ac9c009740ac45e2eb180 (patch) | |
tree | 0bd25e7521d061d81d338ad409b8d5f4a31e8636 | |
parent | 87f15fc3da374082933aef4d2183f319e596c9ba (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>
-rw-r--r-- | tools/intel_iosf_sb_read.c | 3 | ||||
-rw-r--r-- | tools/intel_iosf_sb_write.c | 3 | ||||
-rw-r--r-- | tools/intel_reg_dumper.c | 3 | ||||
-rw-r--r-- | tools/intel_reg_read.c | 3 | ||||
-rw-r--r-- | tools/intel_reg_snapshot.c | 4 | ||||
-rw-r--r-- | tools/intel_reg_write.c | 3 | ||||
-rw-r--r-- | tools/intel_vga_read.c | 3 | ||||
-rw-r--r-- | tools/intel_vga_write.c | 3 |
8 files changed, 25 insertions, 0 deletions
diff --git a/tools/intel_iosf_sb_read.c b/tools/intel_iosf_sb_read.c index f188cda80..097b0b8af 100644 --- a/tools/intel_iosf_sb_read.c +++ b/tools/intel_iosf_sb_read.c @@ -94,6 +94,9 @@ int main(int argc, char *argv[]) int i, nregs, count = 1, reg_stride; const char *name; + fprintf(stderr, "WARNING: Use of %s has been deprecated and replaced by" + " intel_reg.\n", argv[0]); + if (!IS_VALLEYVIEW(dev->device_id) && !IS_CHERRYVIEW(dev->device_id)) { usage(argv[0]); diff --git a/tools/intel_iosf_sb_write.c b/tools/intel_iosf_sb_write.c index eb6700d94..a091a0d40 100644 --- a/tools/intel_iosf_sb_write.c +++ b/tools/intel_iosf_sb_write.c @@ -89,6 +89,9 @@ int main(int argc, char** argv) int i, nregs; const char *name; + fprintf(stderr, "WARNING: Use of %s has been deprecated and replaced by" + " intel_reg.\n", argv[0]); + if (!IS_VALLEYVIEW(dev->device_id) && !IS_CHERRYVIEW(dev->device_id)) { usage(argv[0]); diff --git a/tools/intel_reg_dumper.c b/tools/intel_reg_dumper.c index 3d3200539..f9b4d0630 100644 --- a/tools/intel_reg_dumper.c +++ b/tools/intel_reg_dumper.c @@ -2931,6 +2931,9 @@ int main(int argc, char** argv) char *file = NULL, *reg_name = NULL; uint32_t reg_val, power_well; + fprintf(stderr, "WARNING: Use of %s has been deprecated and replaced by" + " intel_reg.\n", argv[0]); + while ((opt = getopt(argc, argv, "d:h")) != -1) { switch (opt) { case 'd': diff --git a/tools/intel_reg_read.c b/tools/intel_reg_read.c index 46fa664b9..39671ff7a 100644 --- a/tools/intel_reg_read.c +++ b/tools/intel_reg_read.c @@ -74,6 +74,9 @@ int main(int argc, char** argv) int decode_bits = 0; int dwords = 1; + fprintf(stderr, "WARNING: Use of %s has been deprecated and replaced by" + " intel_reg.\n", argv[0]); + while ((ch = getopt(argc, argv, "dfhc:")) != -1) { switch(ch) { case 'd': 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); diff --git a/tools/intel_reg_write.c b/tools/intel_reg_write.c index b0ddffeb6..127519c90 100644 --- a/tools/intel_reg_write.c +++ b/tools/intel_reg_write.c @@ -36,6 +36,9 @@ int main(int argc, char** argv) { uint32_t reg, value; + fprintf(stderr, "WARNING: Use of %s has been deprecated and replaced by" + " intel_reg.\n", argv[0]); + if (argc < 3) { printf("Usage: %s addr value\n", argv[0]); printf(" WARNING: This is dangerous to you and your system's health.\n"); diff --git a/tools/intel_vga_read.c b/tools/intel_vga_read.c index ea5070577..8305fb86d 100644 --- a/tools/intel_vga_read.c +++ b/tools/intel_vga_read.c @@ -57,6 +57,9 @@ int main(int argc, char *argv[]) int i, ch; const char *cmdname = argv[0]; + fprintf(stderr, "WARNING: Use of %s has been deprecated and replaced by" + " intel_reg.\n", argv[0]); + while ((ch = getopt(argc, argv, "m")) != -1) { switch(ch) { case 'm': diff --git a/tools/intel_vga_write.c b/tools/intel_vga_write.c index 821596246..cb1ed98bd 100644 --- a/tools/intel_vga_write.c +++ b/tools/intel_vga_write.c @@ -57,6 +57,9 @@ int main(int argc, char *argv[]) int ch; const char *cmdname = argv[0]; + fprintf(stderr, "WARNING: Use of %s has been deprecated and replaced by" + " intel_reg.\n", argv[0]); + while ((ch = getopt(argc, argv, "m")) != -1) { switch(ch) { case 'm': |