Changeset 979:b90cb4c07160 in freeDiameter for extensions/dbg_interactive/peers.i
- Timestamp:
- Mar 15, 2013, 2:45:03 AM (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/dbg_interactive/peers.i
r740 r979 45 45 46 46 if (!data) { 47 TRACE_DEBUG(INFO, "Internal error: missing callback \n");47 TRACE_DEBUG(INFO, "Internal error: missing callback"); 48 48 return; 49 49 } … … 119 119 120 120 if (!validate_cb2_py) { 121 fd_log_debug("Internal error: missing the callback2! \n");121 fd_log_debug("Internal error: missing the callback2!"); 122 122 return ENOTSUP; 123 123 } … … 132 132 /* The result is an integer */ 133 133 if ((result == NULL) || !SWIG_IsOK(SWIG_AsVal_int(result, &ret))) { 134 fd_log_debug("Error: The Python callback did not return an integer. \n");134 fd_log_debug("Error: The Python callback did not return an integer."); 135 135 ret = EINVAL; 136 136 goto out; … … 150 150 151 151 if (!validate_cb_py) { 152 fd_log_debug("Internal error: missing the callback! \n");152 fd_log_debug("Internal error: missing the callback!"); 153 153 return ENOTSUP; 154 154 } … … 163 163 /* The result is supposedly -1, 1, or a cb2 */ 164 164 if (result == NULL) { 165 fd_log_debug("Error: The Python callback did not return a value. \n");165 fd_log_debug("Error: The Python callback did not return a value."); 166 166 ret = EINVAL; 167 167 goto out; … … 171 171 if (cb2) { 172 172 if (validate_cb2_py && (validate_cb2_py != result)) { 173 fd_log_debug("Only 1 register callback2 is supported currently \n");173 fd_log_debug("Only 1 register callback2 is supported currently"); 174 174 ret = ENOTSUP; 175 175 goto out; … … 185 185 } else { /* In this case, the return value must be -1, 0, or 1 */ 186 186 if (!SWIG_IsOK(SWIG_AsVal_int(result, auth))) { 187 fd_log_debug("Error: Cannot convert the return value to integer. \n");187 fd_log_debug("Error: Cannot convert the return value to integer."); 188 188 ret = EINVAL; 189 189 goto out;
Note: See TracChangeset
for help on using the changeset viewer.