RTEMS CPU Kit with SuperCore  4.10.99.0
Status Checks

Print Macros

#define RTEMS_DEBUG_PRINT(fmt, ...)
 General purpose debug print macro.
 
#define RTEMS_DEBUG_OK(msg)   RTEMS_DEBUG_PRINT( "Ok: %s\n", msg)
 Macro to print debug messages for successful operations.
 
#define RTEMS_SYSLOG_PRINT(fmt, ...)   printf( fmt, ##__VA_ARGS__)
 General purpose system log print macro.
 
#define RTEMS_SYSLOG(fmt, ...)   RTEMS_SYSLOG_PRINT( "%s: " fmt, __func__, ##__VA_ARGS__)
 General purpose system log macro.
 
#define RTEMS_SYSLOG_WARNING(fmt, ...)   RTEMS_SYSLOG( "Warning: " fmt, ##__VA_ARGS__)
 General purpose system log macro for warnings.
 
#define RTEMS_SYSLOG_WARNING_SC(sc, msg)
 Macro to generate a system log warning message if the status code sc is not equal to RTEMS_SUCCESSFUL. More...
 
#define RTEMS_SYSLOG_ERROR(fmt, ...)   RTEMS_SYSLOG( "Error: " fmt, ##__VA_ARGS__)
 General purpose system log macro for errors.
 
#define RTEMS_SYSLOG_ERROR_WITH_SC(sc, msg)   RTEMS_SYSLOG_ERROR( "SC = %i: %s\n", (int) sc, msg);
 Macro for system log error messages with status code.
 
#define RTEMS_SYSLOG_ERROR_WITH_RV(rv, msg)   RTEMS_SYSLOG_ERROR( "RV = %i: %s\n", (int) rv, msg);
 Macro for system log error messages with return value.
 
#define RTEMS_SYSLOG_ERROR_SC(sc, msg)
 Macro to generate a system log error message if the status code sc is not equal to RTEMS_SUCCESSFUL. More...
 
#define RTEMS_SYSLOG_ERROR_RV(rv, msg)
 Macro to generate a system log error message if the return value rv is less than zero. More...
 

Check Macros

#define RTEMS_CHECK_SC(sc, msg)
 Prints message msg and returns with status code sc if the status code sc is not equal to RTEMS_SUCCESSFUL. More...
 
#define RTEMS_CHECK_SC_RV(sc, msg)
 Prints message msg and returns with a return value of negative sc if the status code sc is not equal to RTEMS_SUCCESSFUL. More...
 
#define RTEMS_CHECK_SC_VOID(sc, msg)
 Prints message msg and returns if the status code sc is not equal to RTEMS_SUCCESSFUL. More...
 
#define RTEMS_CHECK_SC_TASK(sc, msg)
 Prints message msg and delete the current task if the status code sc is not equal to RTEMS_SUCCESSFUL. More...
 
#define RTEMS_CHECK_RV(rv, msg)
 Prints message msg and returns with a return value rv if the return value rv is less than zero. More...
 
#define RTEMS_CHECK_RV_SC(rv, msg)
 Prints message msg and returns with status code RTEMS_IO_ERROR if the return value rv is less than zero. More...
 
#define RTEMS_CHECK_RV_VOID(rv, msg)
 Prints message msg and returns if the return value rv is less than zero. More...
 
#define RTEMS_CHECK_RV_TASK(rv, msg)
 Prints message msg and delete the current task if the return value rv is less than zero. More...
 

Cleanup Macros

#define RTEMS_CLEANUP_SC(sc, label, msg)
 Prints message msg and jumps to label if the status code sc is not equal to RTEMS_SUCCESSFUL. More...
 
#define RTEMS_CLEANUP_SC_RV(sc, rv, label, msg)
 Prints message msg and jumps to label if the status code sc is not equal to RTEMS_SUCCESSFUL. More...
 
#define RTEMS_CLEANUP_RV(rv, label, msg)
 Prints message msg and jumps to label if the return value rv is less than zero. More...
 
#define RTEMS_CLEANUP_RV_SC(rv, sc, label, msg)
 Prints message msg and jumps to label if the return value rv is less than zero. More...
 
#define RTEMS_DO_CLEANUP(label, msg)
 Prints message msg and jumps to label. More...
 
#define RTEMS_DO_CLEANUP_SC(val, sc, label, msg)
 Prints message msg, sets the status code variable sc to val and jumps to label. More...
 
#define RTEMS_DO_CLEANUP_RV(val, rv, label, msg)
 Prints message msg, sets the return value variable rv to val and jumps to label. More...
 

Detailed Description

Macro Definition Documentation

#define RTEMS_CHECK_RV (   rv,
  msg 
)
Value:
if ((int) (rv) < 0) { \
return (int) rv; \
} else { \
}
#define RTEMS_DEBUG_OK(msg)
Macro to print debug messages for successful operations.
Definition: status-checks.h:65
#define RTEMS_SYSLOG_ERROR_WITH_RV(rv, msg)
Macro for system log error messages with return value.
Definition: status-checks.h:118

Prints message msg and returns with a return value rv if the return value rv is less than zero.

#define RTEMS_CHECK_RV_SC (   rv,
  msg 
)
Value:
if ((int) (rv) < 0) { \
return RTEMS_IO_ERROR; \
} else { \
}
#define RTEMS_DEBUG_OK(msg)
Macro to print debug messages for successful operations.
Definition: status-checks.h:65
#define RTEMS_SYSLOG_ERROR_WITH_RV(rv, msg)
Macro for system log error messages with return value.
Definition: status-checks.h:118
This is the status to indicate an driver IO error.
Definition: status.h:171

Prints message msg and returns with status code RTEMS_IO_ERROR if the return value rv is less than zero.

#define RTEMS_CHECK_RV_TASK (   rv,
  msg 
)
Value:
if ((int) (rv) < 0) { \
return; \
} else { \
}
#define RTEMS_DEBUG_OK(msg)
Macro to print debug messages for successful operations.
Definition: status-checks.h:65
rtems_status_code rtems_task_delete(rtems_id id)
RTEMS Delete Task.
#define RTEMS_SYSLOG_ERROR_WITH_RV(rv, msg)
Macro for system log error messages with return value.
Definition: status-checks.h:118
#define RTEMS_SELF
Constant to be used as the ID of current task.
Definition: tasks.h:68

Prints message msg and delete the current task if the return value rv is less than zero.

#define RTEMS_CHECK_RV_VOID (   rv,
  msg 
)
Value:
if ((int) (rv) < 0) { \
return; \
} else { \
}
#define RTEMS_DEBUG_OK(msg)
Macro to print debug messages for successful operations.
Definition: status-checks.h:65
#define RTEMS_SYSLOG_ERROR_WITH_RV(rv, msg)
Macro for system log error messages with return value.
Definition: status-checks.h:118

Prints message msg and returns if the return value rv is less than zero.

#define RTEMS_CHECK_SC (   sc,
  msg 
)
Value:
return (rtems_status_code) sc; \
} else { \
}
This is the status to indicate successful completion.
Definition: status.h:50
rtems_status_code
Classic API Status.
Definition: status.h:46
#define RTEMS_DEBUG_OK(msg)
Macro to print debug messages for successful operations.
Definition: status-checks.h:65
#define RTEMS_SYSLOG_ERROR_WITH_SC(sc, msg)
Macro for system log error messages with status code.
Definition: status-checks.h:112

Prints message msg and returns with status code sc if the status code sc is not equal to RTEMS_SUCCESSFUL.

#define RTEMS_CHECK_SC_RV (   sc,
  msg 
)
Value:
return -((int) (sc)); \
} else { \
}
This is the status to indicate successful completion.
Definition: status.h:50
rtems_status_code
Classic API Status.
Definition: status.h:46
#define RTEMS_DEBUG_OK(msg)
Macro to print debug messages for successful operations.
Definition: status-checks.h:65
#define RTEMS_SYSLOG_ERROR_WITH_SC(sc, msg)
Macro for system log error messages with status code.
Definition: status-checks.h:112

Prints message msg and returns with a return value of negative sc if the status code sc is not equal to RTEMS_SUCCESSFUL.

#define RTEMS_CHECK_SC_TASK (   sc,
  msg 
)
Value:
return; \
} else { \
}
This is the status to indicate successful completion.
Definition: status.h:50
rtems_status_code
Classic API Status.
Definition: status.h:46
#define RTEMS_DEBUG_OK(msg)
Macro to print debug messages for successful operations.
Definition: status-checks.h:65
#define RTEMS_SYSLOG_ERROR_WITH_SC(sc, msg)
Macro for system log error messages with status code.
Definition: status-checks.h:112
rtems_status_code rtems_task_delete(rtems_id id)
RTEMS Delete Task.
#define RTEMS_SELF
Constant to be used as the ID of current task.
Definition: tasks.h:68

Prints message msg and delete the current task if the status code sc is not equal to RTEMS_SUCCESSFUL.

#define RTEMS_CHECK_SC_VOID (   sc,
  msg 
)
Value:
return; \
} else { \
}
This is the status to indicate successful completion.
Definition: status.h:50
rtems_status_code
Classic API Status.
Definition: status.h:46
#define RTEMS_DEBUG_OK(msg)
Macro to print debug messages for successful operations.
Definition: status-checks.h:65
#define RTEMS_SYSLOG_ERROR_WITH_SC(sc, msg)
Macro for system log error messages with status code.
Definition: status-checks.h:112

Prints message msg and returns if the status code sc is not equal to RTEMS_SUCCESSFUL.

#define RTEMS_CLEANUP_RV (   rv,
  label,
  msg 
)
Value:
if ((int) (rv) < 0) { \
goto label; \
} else { \
}
#define RTEMS_DEBUG_OK(msg)
Macro to print debug messages for successful operations.
Definition: status-checks.h:65
#define RTEMS_SYSLOG_ERROR_WITH_RV(rv, msg)
Macro for system log error messages with return value.
Definition: status-checks.h:118

Prints message msg and jumps to label if the return value rv is less than zero.

#define RTEMS_CLEANUP_RV_SC (   rv,
  sc,
  label,
  msg 
)
Value:
if ((int) (rv) < 0) { \
goto label; \
} else { \
}
#define RTEMS_DEBUG_OK(msg)
Macro to print debug messages for successful operations.
Definition: status-checks.h:65
#define RTEMS_SYSLOG_ERROR_WITH_RV(rv, msg)
Macro for system log error messages with return value.
Definition: status-checks.h:118
This is the status to indicate an driver IO error.
Definition: status.h:171

Prints message msg and jumps to label if the return value rv is less than zero.

The status code variable sc will be set to RTEMS_IO_ERROR in this case.

#define RTEMS_CLEANUP_SC (   sc,
  label,
  msg 
)
Value:
goto label; \
} else { \
}
This is the status to indicate successful completion.
Definition: status.h:50
rtems_status_code
Classic API Status.
Definition: status.h:46
#define RTEMS_DEBUG_OK(msg)
Macro to print debug messages for successful operations.
Definition: status-checks.h:65
#define RTEMS_SYSLOG_ERROR_WITH_SC(sc, msg)
Macro for system log error messages with status code.
Definition: status-checks.h:112

Prints message msg and jumps to label if the status code sc is not equal to RTEMS_SUCCESSFUL.

#define RTEMS_CLEANUP_SC_RV (   sc,
  rv,
  label,
  msg 
)
Value:
rv = -((int) (sc)); \
goto label; \
} else { \
}
This is the status to indicate successful completion.
Definition: status.h:50
rtems_status_code
Classic API Status.
Definition: status.h:46
#define RTEMS_DEBUG_OK(msg)
Macro to print debug messages for successful operations.
Definition: status-checks.h:65
#define RTEMS_SYSLOG_ERROR_WITH_SC(sc, msg)
Macro for system log error messages with status code.
Definition: status-checks.h:112

Prints message msg and jumps to label if the status code sc is not equal to RTEMS_SUCCESSFUL.

The return value variable rv will be set to a negative sc in this case.

#define RTEMS_DO_CLEANUP (   label,
  msg 
)
Value:
do { \
goto label; \
} while (0)
#define RTEMS_SYSLOG_ERROR(fmt,...)
General purpose system log macro for errors.
Definition: status-checks.h:106

Prints message msg and jumps to label.

#define RTEMS_DO_CLEANUP_RV (   val,
  rv,
  label,
  msg 
)
Value:
do { \
rv = (int) val; \
goto label; \
} while (0)
#define RTEMS_SYSLOG_ERROR_WITH_RV(rv, msg)
Macro for system log error messages with return value.
Definition: status-checks.h:118

Prints message msg, sets the return value variable rv to val and jumps to label.

#define RTEMS_DO_CLEANUP_SC (   val,
  sc,
  label,
  msg 
)
Value:
do { \
sc = (rtems_status_code) val; \
goto label; \
} while (0)
rtems_status_code
Classic API Status.
Definition: status.h:46
#define RTEMS_SYSLOG_ERROR_WITH_SC(sc, msg)
Macro for system log error messages with status code.
Definition: status-checks.h:112

Prints message msg, sets the status code variable sc to val and jumps to label.

#define RTEMS_SYSLOG_ERROR_RV (   rv,
  msg 
)
Value:
if ((int) (rv) < 0) { \
}
#define RTEMS_SYSLOG_ERROR_WITH_RV(rv, msg)
Macro for system log error messages with return value.
Definition: status-checks.h:118

Macro to generate a system log error message if the return value rv is less than zero.

#define RTEMS_SYSLOG_ERROR_SC (   sc,
  msg 
)
Value:
}
This is the status to indicate successful completion.
Definition: status.h:50
rtems_status_code
Classic API Status.
Definition: status.h:46
#define RTEMS_SYSLOG_ERROR_WITH_SC(sc, msg)
Macro for system log error messages with status code.
Definition: status-checks.h:112

Macro to generate a system log error message if the status code sc is not equal to RTEMS_SUCCESSFUL.

#define RTEMS_SYSLOG_WARNING_SC (   sc,
  msg 
)
Value:
RTEMS_SYSLOG_WARNING( "SC = %i: %s\n", (int) sc, msg); \
}
This is the status to indicate successful completion.
Definition: status.h:50
#define RTEMS_SYSLOG_WARNING(fmt,...)
General purpose system log macro for warnings.
Definition: status-checks.h:91
rtems_status_code
Classic API Status.
Definition: status.h:46

Macro to generate a system log warning message if the status code sc is not equal to RTEMS_SUCCESSFUL.