diff options
| author | skurtz97 <skurtz97@users.noreply.github.com> | 2026-11-25 16:20:36 -0600 |
|---|---|---|
| committer | skurtz97 <skurtz97@users.noreply.github.com> | 2026-11-25 16:20:36 -0600 |
| commit | da754a07c41d73012eb1121f13bfeb1814bc5e59 (patch) | |
| tree | ec5b178e8e30c111db829b08d4ce88c931656ee3 | |
| parent | 4442a36a4f0fee2d962345f84f2b6a6bdff24add (diff) | |
| download | ztop-da754a07c41d73012eb1121f13bfeb1814bc5e59.tar.gz | |
ztop: say which code the stub returned
| -rw-r--r-- | src/ztop.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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) { |
