diff options
Diffstat (limited to 'stap-server-connect.c')
-rw-r--r-- | stap-server-connect.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/stap-server-connect.c b/stap-server-connect.c index e93ae37b..cbbc97d1 100644 --- a/stap-server-connect.c +++ b/stap-server-connect.c @@ -31,6 +31,8 @@ #include <nss.h> #include <pk11func.h> +#include "nsscommon.h" + #define READ_BUFFER_SIZE (60 * 1024) /* Global variables */ @@ -55,9 +57,8 @@ Usage(const char *progName) static void errWarn(char *function) { - PRErrorCode errorNumber = PR_GetError(); - - printf("Error in function %s: %d\n\n", function, errorNumber); + fprintf(stderr, "Error in function %s: ", function); + nssError(); } static void |