Changeset 4055:00addfba7e7f in roaraudio


Ignore:
Timestamp:
07/15/10 15:19:40 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

adding some more ROAR_INFO()s

Location:
roard
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • roard/roard.c

    r4053 r4055  
    245245 int ok; 
    246246 
     247 ROAR_INFO("restart_server(server='%s', terminate=%i): trying to restart server", ROAR_DBG_INFO_INFO, server, terminate); 
     248 
    247249 if ( pidfile != NULL ) { 
    248250  if ( roar_vio_open_file(&fh, pidfile, O_RDONLY, 0644) == -1 ) { 
     
    512514 int    i; 
    513515 
     516 ROAR_INFO("add_listen(addr='%s', port=%i, sock_type=%i, user='%s', group='%s', proto=%s(%i), dir=%s(%i), info={.rate=%u, .bits=%u, .channels=%u, .codec=%s(%u)}): trying to add listen socket", 
     517            ROAR_DBG_INFO_INFO, 
     518            addr, port, sock_type, user, group, roar_proto2str(proto), proto, roar_dir2str(dir), dir, 
     519            info->rate, info->bits, info->channels, roar_codec2str(info->codec), info->codec); 
     520 
    514521 if ( *addr != 0 ) { 
    515522  for (i = 0; i < ROAR_MAX_LISTEN_SOCKETS; i++) { 
     
    701708 float q = -32e6; 
    702709 
    703  ROAR_DBG("add_output(drv='%s', dev='%s', opts='%s') = ?", drv, dev, opts); 
     710 ROAR_INFO("add_output(drv='%s', dev='%s', opts='%s', prim=%i, count=%i): trying to add output driver", ROAR_DBG_INFO_INFO, drv, dev, opts, prim, count); 
    704711 
    705712 if ( drv == NULL && count == 0 ) { 
     
    18601867 add_output(o_drv, o_dev, o_opts, o_prim, o_count); 
    18611868 
    1862  ROAR_DBG("Server config: rate=%i, bits=%i, chans=%i", sa.rate, sa.bits, sa.channels); 
     1869 ROAR_INFO("Server config: rate=%i, bits=%i, chans=%i", ROAR_DBG_INFO_NOTICE, sa.rate, sa.bits, sa.channels); 
    18631870 
    18641871 if ( waveform_init() == -1 ) { 
     
    20982105 
    20992106 // start main loop... 
     2107 ROAR_INFO("Entering main loop", ROAR_DBG_INFO_INFO); 
    21002108 main_loop(drvid, drvinst, &sa, sysclocksync); 
     2109 ROAR_INFO("Left main loop", ROAR_DBG_INFO_INFO); 
    21012110 
    21022111 // clean up. 
     
    21052114 output_buffer_free(); 
    21062115 
     2116 ROAR_INFO("Exiting, no error", ROAR_DBG_INFO_INFO); 
    21072117 return 0; 
    21082118} 
     
    21102120void cleanup_listen_socket (int terminate) { 
    21112121 int i; 
     2122 
     2123 ROAR_DBG("cleanup_listen_socket(terminate=%i) = (void)?", terminate); 
     2124 
     2125 ROAR_INFO("Cleaning up listen sockets", ROAR_DBG_INFO_INFO); 
    21122126 
    21132127 // Deregister from SLP: 
     
    21762190 
    21772191void clean_quit (void) { 
     2192 ROAR_INFO("Shuting down", ROAR_DBG_INFO_INFO); 
     2193 
    21782194 clean_quit_prep(); 
    21792195// driver_close(drvinst, drvid); 
    21802196// output_buffer_free(); 
     2197 
     2198 ROAR_INFO("Exiting, no error", ROAR_DBG_INFO_INFO); 
    21812199 exit(0); 
    21822200} 
  • roard/signals.c

    r3811 r4055  
    3131 
    3232void on_sig_int (int signum) { 
    33  ROAR_DBG("got SIGINT"); 
     33 ROAR_INFO("got SIGINT", ROAR_DBG_INFO_NOTICE); 
    3434 
    3535 // TODO: implement some kind of termonate/force depending on how many ^Cs we get 
     
    3838 
    3939void on_sig_term (int signum) { 
    40  ROAR_DBG("got SIGTERM (or called by SIGINT handler)"); 
     40 ROAR_INFO("got SIGTERM (or called by SIGINT handler)", ROAR_DBG_INFO_NOTICE); 
    4141 
    4242 alive = 0; 
     
    4545 
    4646void on_sig_chld (int signum) { 
    47  ROAR_DBG("got SIGCHLD"); 
     47 ROAR_INFO("got SIGCHLD", ROAR_DBG_INFO_NOTICE); 
    4848 
    4949 wait(NULL); 
     
    5353 
    5454void on_sig_usr1 (int signum) { 
    55  ROAR_DBG("got SIGUSR1"); 
     55 ROAR_INFO("got SIGUSR1", ROAR_DBG_INFO_NOTICE); 
    5656 
    5757 cleanup_listen_socket(1); 
Note: See TracChangeset for help on using the changeset viewer.