about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2020-06-17 21:27:06 +0530
committerAndinus <andinus@nand.sh>2020-06-17 21:27:06 +0530
commitc9ca5e242da4c38f5baab3c707121f97c8382047 (patch)
tree6822e1ccb4dc03482e699ddc085f1adaf8fdc2d4
parent60da73fabbb1214fe053a7d13ebff71f729519f3 (diff)
downloadcrux-c9ca5e242da4c38f5baab3c707121f97c8382047.tar.gz
Improve unveil debug message
-rwxr-xr-xcrux.pl12
1 files changed, 2 insertions, 10 deletions
diff --git a/crux.pl b/crux.pl
index 50d72c6..487b8e7 100755
--- a/crux.pl
+++ b/crux.pl
@@ -20,18 +20,10 @@ require OpenBSD::Unveil
     if is_OpenBSD;
 sub unveil {
     if (is_OpenBSD) {
-        if ( $options{debug} ) {
-            # Check if defined because unveil can also be called blank
-            # to block it.
-            if ( defined($_[0]) and defined($_[1]) ) {
-                say LOCALCOLOR GREEN "Unveil :: $_[0] :: $_[1]";
-            } else {
-                say LOCALCOLOR GREEN "Unveil :: Block";
-            }
-        }
+        say LOCALCOLOR GREEN "Unveil :: @_" if $options{debug};
         return OpenBSD::Unveil::unveil(@_);
     } else {
-        warn "Calling dummy unveil...\n" if $options{debug};
+        warn "Dummy unveil :: @_\n" if $options{debug};
         return 1;
     }
 }