All pastes #331323 Raw Edit

Something

public text v1 · immutable
#331323 ·published 2007-01-28 19:42 UTC
rendered paste body
                // print message on first overrun only
                if(emcmot_hal_data->overruns == 1) {
                    int saved_level = rtapi_get_msg_level();
                    rtapi_set_msg_level(RTAPI_MSG_ALL);
                    reportError("Unexpected realtime delay: check dmesg for details.");
                    rtapi_print_msg(RTAPI_MSG_WARN,
                        "\nIn recent history there were\n"
                        "%ld, %ld, %ld, %ld, and %ld\n"
                        "elapsed clocks between calls to the motion controller.\n"  
                        "This time, there were %ld which is so anomalously\n"
                        "large that it probably signifies a problem with your\n"
                        "realtime configuration.  For the rest of this run of\n"
                        "EMC, this message will be suppressed.\n\n",
                        cycles[0], cycles[1], cycles[2], cycles[3], cycles[4],
                        this_run);
                    rtapi_set_msg_level(saved_level);
                }