Changeset 331 for devel/5.X/pbs.i


Ignore:
Timestamp:
03/09/15 23:06:35 (9 years ago)
Author:
bas
Message:

use the standard error file from pbs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/5.X/pbs.i

    r327 r331  
    2323#include "log.h"
    2424
    25 #define SARA_DEBUG 0
     25#define SARA_DEBUG 1
    2626
    2727//extern int pbs_errno;
     
    494494int get_error()
    495495{
    496    char *errmsg;
    497 
    498    errmsg = pbse_to_txt(pbs_errno);
    499496   if (SARA_DEBUG)
    500497   {
    501       printf("Bas = %d\n", pbs_errno);
    502       printf("Bas = %d, text = %s\n", pbs_errno, errmsg);
     498      printf("Bas pbs_errno = %d, pbs_strerror %s\n", pbs_errno, pbs_strerror(pbs_errno));
    503499   }
    504500   return (pbs_errno);
     
    521517%include "rm.h"
    522518%include "log.h"
     519%include "pbs_error.h"
    523520
    524521
Note: See TracChangeset for help on using the changeset viewer.