Ticket #46: remove_basje_called.patch

File remove_basje_called.patch, 1.2 KB (added by ewan.higgs@…, 7 years ago)

Patch to remove 'basje' printfs.

  • src/C++/pbs_wrap.cxx

     
    30153015    allocate memory as a one block is handy for Python scripts
    30163016    and fill in the next fields so it also works for the C-library
    30173017  */
    3018   printf("basje \n");
     3018  //printf("basje \n");
    30193019  ptr = (struct attrl *) malloc(number * sizeof(struct attrl));
    30203020
    30213021  prev = NULL;
     
    30223022  current = ptr + (number - 1);
    30233023  for (i=0; i < number; i++)
    30243024  {
    3025     printf("constructor called\n");
     3025    //printf("constructor called\n");
    30263026    current->name     = (char *) malloc(MAXNAMLEN * sizeof(char));
    30273027    current->resource = (char *) malloc(MAXNAMLEN * sizeof(char));
    30283028    current->value    = (char *) malloc(MAXNAMLEN * sizeof(char));
     
    30593059  current = ptr + (number - 1);
    30603060  for (i=0; i < number; i++)
    30613061  {
    3062     printf("constructor called\n");
     3062    //printf("constructor called\n");
    30633063    current->name     = (char *) malloc(MAXNAMLEN * sizeof(char));
    30643064    current->resource = (char *) malloc(MAXNAMLEN * sizeof(char));
    30653065    current->value    = (char *) malloc(MAXNAMLEN * sizeof(char));