All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH umr] remove --vram-* commands finally
@ 2017-10-16 13:01 Tom St Denis
  0 siblings, 0 replies; only message in thread
From: Tom St Denis @ 2017-10-16 13:01 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Tom St Denis

Signed-off-by: Tom St Denis <tom.stdenis@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

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-10-16 13:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-16 13:01 [PATCH umr] remove --vram-* commands finally Tom St Denis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.