aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--unprotbas.13
-rw-r--r--unprotbas.c5
-rw-r--r--unprotbas.rst3
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
--------------------