Ignore:
Timestamp:
Aug 8, 2011 9:05:38 AM (13 years ago)
Author:
gah
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/nanoscale/server.c

    r2333 r2334  
    127127    }
    128128 
    129     printf("processes=%d, memory=%d, load=%f\n",
     129    INFO("processes=%d, memory=%d, load=%f\n",
    130130           children, memory_in_use, load);
    131131
     
    139139            child_array[c].requests += value;
    140140#ifdef DEBUGGING
    141             printf("Updating requests from pipefd %d to %f\n",
     141            INFO("Updating requests from pipefd %d to %f\n",
    142142                   child_array[c].pipefd,
    143143                   child_array[c].requests);
     
    406406                }
    407407             
    408                 printf("New connection from %s\n", inet_ntoa(newaddr.sin_addr));
     408                INFO("New connection from %s\n", inet_ntoa(newaddr.sin_addr));
    409409                FD_SET(newfd, &saved_rfds);
    410410                maxfd = max(maxfd, newfd);
     
    433433            float peer_load = ntohl(buffer[0]);
    434434            int peer_procs = ntohl(buffer[1]);
    435             //printf("Load for %s is %f (%d processes).\n",
     435            //INFO("Load for %s is %f (%d processes).\n",
    436436            //       inet_ntoa(peer_addr.sin_addr), peer_load, peer_procs);
    437437            int h;
     
    441441                if (host_array[h].in_addr.s_addr == peer_addr.sin_addr.s_addr) {
    442442                    if (host_array[h].children != peer_procs) {
    443                         printf("Load for %s is %f (%d processes).\n",
     443                        INFO("Load for %s is %f (%d processes).\n",
    444444                               inet_ntoa(peer_addr.sin_addr), peer_load, peer_procs);
    445445                    }
     
    498498                load += 2*INITIAL_LOAD;
    499499                INFO("Accepted new job with memory %d\n", newmemory);
    500                 //printf("My load is now %f\n", load);
     500                //INFO("My load is now %f\n", load);
    501501             
    502502                // accept the connection.
     
    558558                                    ERROR("can't execute \"%s\": %s\n",
    559559                                          command_argv[n][0], strerror(errno));
    560                                 }
     560                                } else {
     561                                    INFO("started command \"%s\": %s\n",
     562                                          command_argv[n][0], strerror(errno));
     563
    561564                            }
    562565                            _exit(errno);
Note: See TracChangeset for help on using the changeset viewer.