[Pdbg] [PATCH 15/18] htm: Print dump file from library

Michael Neuling mikey at neuling.org
Tue Jun 19 15:25:32 AEST 2018


Signed-off-by: Michael Neuling <mikey at neuling.org>
---
 libpdbg/htm.c | 1 +
 src/htm.c     | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/libpdbg/htm.c b/libpdbg/htm.c
index b037997245..9c229dc99f 100644
--- a/libpdbg/htm.c
+++ b/libpdbg/htm.c
@@ -924,6 +924,7 @@ static int do_htm_dump(struct htm *htm, uint64_t size, char *filename)
 	if (size == 0)
 		size = status.mem_last - status.mem_base;
 
+	printf("Dumping %li MB to %s\n", size >> 20, filename);
 	if (status.mem_last - status.mem_base > size) {
 		PR_INFO("Requested size is larger than trace 0x%" PRIx64" vs 0x%" PRIx64 "\n",
 				size, status.mem_last - status.mem_base);
diff --git a/src/htm.c b/src/htm.c
index a58a968c08..ae7e1ea1e2 100644
--- a/src/htm.c
+++ b/src/htm.c
@@ -166,7 +166,6 @@ static int run_dump(enum htm_type type)
 		/* size = 0 will dump everything */
 		printf("Dumping HTM@");
 		print_htm_address(type, target);
-		printf("File: %s\n", filename);
 		if (htm_dump(target, 0, filename) != 1) {
 			printf("Couldn't dump HTM@");
 			print_htm_address(type, target);
-- 
2.17.1



More information about the Pdbg mailing list