From fbca72ec9b3057d0d1ef35ecb1fd75e114774c2a Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Thu, 30 May 2024 15:36:31 -0400 Subject: unprotbas: tweak doc. --- unprotbas.1 | 3 ++- unprotbas.c | 5 +---- unprotbas.rst | 3 ++- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/unprotbas.1 b/unprotbas.1 index c103ed5..2137f42 100644 --- a/unprotbas.1 +++ b/unprotbas.1 @@ -71,7 +71,8 @@ Print usage message and exit. Print version number and exit. .TP .B \fB\-v\fP -Verbose operation. +Verbose operation. When displaying a number in verbose mode, it will +be prefixed with \fI$\fP if it\(aqs in hex, or no prefix for decimal. .UNINDENT .SS Unprotection Options .INDENT 0.0 diff --git a/unprotbas.c b/unprotbas.c index e7a7df8..7dc183a 100644 --- a/unprotbas.c +++ b/unprotbas.c @@ -881,10 +881,7 @@ int main(int argc, char **argv) { } if(verbose) { - if(was_protected) - fprintf(stderr, "Program was protected.\n"); - else - fprintf(stderr, "Program was NOT protected.\n"); + fprintf(stderr, "Program was %sprotected.\n", (was_protected ? "" : "NOT ")); } if(checkonly) { diff --git a/unprotbas.rst b/unprotbas.rst index 5722880..b31668e 100644 --- a/unprotbas.rst +++ b/unprotbas.rst @@ -54,7 +54,8 @@ General Options Print version number and exit. **-v** - Verbose operation. + Verbose operation. When displaying a number in verbose mode, it will + be prefixed with *$* if it's in hex, or no prefix for decimal. Unprotection Options -------------------- -- cgit v1.2.3