src/lib/util.c
const char *job_status_to_str(int status, int errors)
{
   const char *str;

   switch (status) {
   case JS_Terminated:
      if (errors > 0) {
         str = _("OK -- with warnings");
      } else {
         str = _("OK");
      }
      break;
   case JS_Warnings:
      str = _("OK -- with warnings");
      break;
   case JS_ErrorTerminated:
   case JS_Error:
      str = _("Error");
      break;
   case JS_FatalError:
      str = _("Fatal Error");
      break;
   case JS_Canceled:
      str = _("Canceled");
      break;
   case JS_Differences:
      str = _("Differences");
      break;
   case JS_Created:
      str = _("Created");
      break;
   case JS_Incomplete:
      str = _("Incomplete");
      break;
   default:
      str = _("Unknown term code");
      break;
   }
   return str;
}
/*
 * Convert Job Termination Status into a string
 */
Convert Job Termination Status into a string
Convert Job Termination Status into a string
const char *job_status_to_str(int status, int errors)
{
   const char *str;
   switch (status) {
   case JS_Terminated:
      if (errors > 0) {
         str = _("OK -- with warnings");
      } else {
         str = _("OK");
      }
      break;
   case JS_Warnings:
      str = _("OK -- with warnings");
      break;
   case JS_ErrorTerminated:
   case JS_Error:
      str = _("Error");
      break;
   case JS_FatalError:
      str = _("Fatal Error");
      break;
   case JS_Canceled:
      str = _("Canceled");
      break;
   case JS_Differences:
      str = _("Differences");
      break;
   case JS_Created:
      str = _("Created");
      break;
   case JS_Incomplete:
      str = _("Incomplete");
      break;
   default:
      str = _("Unknown term code");
      break;
   }
   return str;
}
const char * job_status_to_str ( int status , int errors ) { const char * str ; switch ( status ) { case JS_Terminated : if ( errors > 0 ) { str = _ ( " " ) ; } else { str = _ ( " " ) ; } break ; case JS_Warnings : str = _ ( " " ) ; break ; case JS_ErrorTerminated : case JS_Error : str = _ ( " " ) ; break ; case JS_FatalError : str = _ ( " " ) ; break ; case JS_Canceled : str = _ ( " " ) ; break ; case JS_Differences : str = _ ( " " ) ; break ; case JS_Created : str = _ ( " " ) ; break ; case JS_Incomplete : str = _ ( " " ) ; break ; default : str = _ ( " " ) ; break ; } return str ; }
Convert Job Termination Status into a string
Convert Job Termination Status into a string