Navigation



Ignore:
Timestamp:
Mar 15, 2013, 2:45:03 AM (11 years ago)
Author:
Thomas Klausner <tk@giga.or.at>
Branch:
default
Phase:
public
Message:

Remove more newlines.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/dbg_interactive/dispatch.i

    r741 r979  
    4747       
    4848        if (!pycb) {
    49                 fd_log_debug("Internal error: missing the callback!\n");
     49                fd_log_debug("Internal error: missing the callback!");
    5050                return ENOTSUP;
    5151        }
     
    6363        /* The result is supposedly composed of: [ ret, *msg, *action ] */
    6464        if ((result == NULL) || (!PyList_Check(result)) || (PyList_Size(result) != 3)) {
    65                 fd_log_debug("Error: The Python callback did not return [ ret, msg, action ].\n");
     65                fd_log_debug("Error: The Python callback did not return [ ret, msg, action ].");
    6666                ret = EINVAL;
    6767                goto out;
     
    7070        /* Convert the return values */
    7171        if (!SWIG_IsOK(SWIG_AsVal_int(PyList_GetItem(result, 0), &ret))) {
    72                 fd_log_debug("Error: Cannot convert the first return value to integer.\n");
     72                fd_log_debug("Error: Cannot convert the first return value to integer.");
    7373                ret = EINVAL;
    7474                goto out;
    7575        }
    7676        if (ret) {
    77                 TRACE_DEBUG(INFO, "The Python callback returned the error code %d (%s)\n", ret, strerror(ret));
     77                TRACE_DEBUG(INFO, "The Python callback returned the error code %d (%s)", ret, strerror(ret));
    7878                goto out;
    7979        }
    8080       
    8181        if (!SWIG_IsOK(SWIG_ConvertPtr(PyList_GetItem(result, 1), (void *)msg, SWIGTYPE_p_msg, SWIG_POINTER_DISOWN))) {
    82                 fd_log_debug("Error: Cannot convert the second return value to message.\n");
     82                fd_log_debug("Error: Cannot convert the second return value to message.");
    8383                ret = EINVAL;
    8484                goto out;
     
    8686       
    8787        if (!SWIG_IsOK(SWIG_AsVal_int(PyList_GetItem(result, 2), (int *)action))) {
    88                 fd_log_debug("Error: Cannot convert the third return value to integer.\n");
     88                fd_log_debug("Error: Cannot convert the third return value to integer.");
    8989                ret = EINVAL;
    9090                goto out;
    9191        }
    9292       
    93         TRACE_DEBUG(FULL, "Python callback return: *action = %d\n", *action);
     93        TRACE_DEBUG(FULL, "Python callback return: *action = %d", *action);
    9494out:   
    9595        Py_XDECREF(result);
Note: See TracChangeset for help on using the changeset viewer.