Navigation


Changes in / [988:371f899276ed:987:8d7201a747eb] in freeDiameter


Ignore:
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/dbg_interactive/dbg_interactive.c

    r985 r974  
    3636#include <Python.h>
    3737#include <freeDiameter/extension.h>
    38 #include <unistd.h>
    3938
    4039/* wrapper generated by SWIG */
     
    6261        CHECK_FCT_DO(fd_core_waitstartcomplete(), goto end);
    6362       
    64         if (arg) {
    65                 fd_log_debug("Starting python interpreter with a script file [experimental].");
    66                 Py_Main(2, dum);
    67         } else {
    68                 if (!isatty(fileno(stdin)) || !isatty(fileno(stdout))) {
    69                         TRACE_ERROR("[dbg_interactive]: this extension requires freeDiameter to be run from a console terminal!");
    70                         goto end;
    71                 }
    72                 printf("Starting interactive python interpreter [experimental].\n");
    73                 printf("Example syntax:\n");
    74                 printf("   >>> print cvar.fd_g_config.cnf_diamid\n");
    75                 printf("   '%s'\n", fd_g_config->cnf_diamid);
    76                 Py_Main(1, dum);
     63        fd_log_debug("Starting interactive python interpreter [experimental].");
     64        if (!arg) {
     65                fd_log_debug("Example syntax:");
     66                fd_log_debug("   >>> print cvar.fd_g_config.cnf_diamid");
     67                fd_log_debug("   '%s'", fd_g_config->cnf_diamid);
    7768        }
     69        Py_Main(arg ? 2 : 1, dum);
    7870       
    7971end:   
  • libfdproto/log.c

    r986 r980  
    118118    }
    119119    vfprintf(fstr, format, ap);
     120    fprintf(fstr, "\n");
    120121    if (local_use_color)
    121122             fprintf(fstr, "\e[00m");
    122     fprintf(fstr, "\n");
    123123   
    124124    fflush(fstr);
Note: See TracChangeset for help on using the changeset viewer.