From 067f35dd0cfd7f2026ef91ac4ad34184228cf362 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20Tr=C3=A1vn=C3=AD=C4=8Dek?= Date: Mon, 5 May 2025 12:25:09 +0200 Subject: [PATCH] Fixed the error message shown when a PID is not provided. Note: There is still a duplicate line of code that needs to be addressed. --- procmap | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/procmap b/procmap index 7562330..f2f5f45 100755 --- a/procmap +++ b/procmap @@ -23,7 +23,7 @@ # # Thus, we obtain a full 'picture', a COMPLETE MEMORY MAP of the given process's # VAS (Virtual Address Space)! -# +# # Common terms: # kva = kernel virtual address # uva = user virtual address @@ -376,7 +376,7 @@ XKERN_FILE=${XKERN_FILE} done shift $((OPTIND-1)) -[[ ${PID} -eq 0 ]] && err 0 "Error: Invalid PID (must be a positive integer)" +[[ ${PID} -eq 0 ]] && err 0 "Specifying a valid PID with -p|--pid= is mandatory" LOG=log_procmap.txt TMPCSV=/tmp/${name}/vgrph.csv