/* * 条件チェックのエラー処理 */ void _check_assert(const char *expr, const char *file, int_t line) { syslog_3(LOG_ERROR, "## Assertion `%s' failed at %s:%u.", expr, file, line); test_finish(); }
/* * エラーコードチェックのエラー処理 */ void _check_ercd(ER ercd, const char *file, int_t line) { syslog_3(LOG_ERROR, "## Unexpected error %s detected at %s:%u.", itron_strerror(ercd), file, line); test_finish(); }
/* * 出力タスク */ void task(intptr_t exinf){ int local_count = 0,i; for (i = 0 ; i < 100 ; i++) { local_count = busy_wait_inc(local_count); count = busy_wait_inc(count); syslog_3(LOG_NOTICE, "Task %d : count = %d, local_count = %d", exinf, count, local_count); } }