summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorskurtz97 <skurtz97@users.noreply.github.com>2026-11-25 16:20:36 -0600
committerskurtz97 <skurtz97@users.noreply.github.com>2026-11-25 16:20:36 -0600
commitda754a07c41d73012eb1121f13bfeb1814bc5e59 (patch)
treeec5b178e8e30c111db829b08d4ce88c931656ee3
parent4442a36a4f0fee2d962345f84f2b6a6bdff24add (diff)
downloadztop-da754a07c41d73012eb1121f13bfeb1814bc5e59.tar.gz
ztop: say which code the stub returned
-rw-r--r--src/ztop.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ztop.c b/src/ztop.c
index e265ad3..906692d 100644
--- a/src/ztop.c
+++ b/src/ztop.c
@@ -138,8 +138,10 @@ int main(int argc, char **argv) {
}
struct zreq req = {.area = area, .len = WORK, .wk = work, .rc = -1};
- if (zvslist(&req) != 0) {
- fprintf(stderr, "ztop: the assembler stub does not know area %d\n", area);
+ int stub = zvslist(&req);
+ if (stub != 0) {
+ fprintf(stderr, "ztop: the stub returned %d for area %d (auth %d)\n",
+ stub, area, req.auth);
return 2;
}
if (req.auth != 0) {