From: Arun Thomas Date: Wed, 23 Feb 2011 12:55:10 +0000 (+0000) Subject: service: Improve failure message X-Git-Tag: v3.2.0~644 X-Git-Url: http://zhaoyanbai.com/repos/doc/man.3.txt?a=commitdiff_plain;h=2bc8ac55ce880537707f610e340781012ea913da;p=minix.git service: Improve failure message --- diff --git a/commands/service/service.c b/commands/service/service.c index c32583dc6..c9b3d34c7 100644 --- a/commands/service/service.c +++ b/commands/service/service.c @@ -147,9 +147,9 @@ PRIVATE void print_usage(char *app_name, char *problem) /* A request to the RS server failed. Report and exit. */ -PRIVATE void failure(void) +PRIVATE void failure(int request) { - fprintf(stderr, "Request to RS failed: %s (error %d)\n", strerror(errno), errno); + fprintf(stderr, "Request 0x%x to RS failed: %s (error %d)\n", request, strerror(errno), errno); exit(errno); } @@ -1521,7 +1521,7 @@ PUBLIC int main(int argc, char **argv) /* Build request message and send the request. */ if(result == OK) { if (_syscall(RS_PROC_NR, request, &m) == -1) - failure(); + failure(request); result = m.m_type; }