[PATCH umr] remove --vram-* commands finally
Tom St Denis
tom.stdenis at amd.com
Mon Oct 16 13:01:37 UTC 2017
Signed-off-by: Tom St Denis <tom.stdenis at amd.com>
---
src/app/main.c | 22 ++--------------------
1 file changed, 2 insertions(+), 20 deletions(-)
diff --git a/src/app/main.c b/src/app/main.c
index 0a44c4399bb8..a05fd7f475fa 100644
--- a/src/app/main.c
+++ b/src/app/main.c
@@ -382,17 +382,7 @@ int main(int argc, char **argv)
printf("--vm-decode requires two parameters\n");
return EXIT_FAILURE;
}
- } else if (!strcmp(argv[i], "--vram") || !strcmp(argv[i], "-v") ||
- !strcmp(argv[i], "--vram-read") || !strcmp(argv[i], "-vr") ||
- !strcmp(argv[i], "--vm-read")) {
-
-// eventually remove this
-if (strcmp(argv[i], "--vm-read") && strcmp(argv[i], "-vr")) {
- fprintf(stderr, "[WARNING]: Please use --vm-read or -vr to read VM memory\n");
-}
-//
-
-
+ } else if (!strcmp(argv[i], "-vr") || !strcmp(argv[i], "--vm-read")) {
if (i + 2 < argc) {
unsigned char buf[256];
uint64_t address;
@@ -426,15 +416,7 @@ if (strcmp(argv[i], "--vm-read") && strcmp(argv[i], "-vr")) {
printf("--vram-read requires two parameters\n");
return EXIT_FAILURE;
}
- } else if (!strcmp(argv[i], "--vram-write") || !strcmp(argv[i], "-vw") ||
- !strcmp(argv[i], "--vm-write")) {
-
-// eventually remove this
-if (strcmp(argv[i], "--vm-write") && strcmp(argv[i], "-vw")) {
- fprintf(stderr, "[WARNING]: Please use --vm-write or -vw to write VM memory\n");
-}
-//
-
+ } else if (!strcmp(argv[i], "-vw") || !strcmp(argv[i], "--vm-write")) {
if (i + 2 < argc) {
unsigned char buf[256];
uint64_t address;
--
2.12.0
More information about the amd-gfx
mailing list