Ignore:
Timestamp:
03/17/10 02:41:17 (14 years ago)
Author:
tim
Message:

redesigned regfi logging API to utilize thread-local storage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/reglookup-recover.c

    r181 r182  
    827827  }
    828828
     829  if(print_verbose)
     830    regfi_log_start(REGFI_LOG_ERROR|REGFI_LOG_WARN|REGFI_LOG_INFO);
     831  else
     832    regfi_log_start(REGFI_LOG_ERROR);
     833
    829834  f = regfi_alloc(fd);
    830835  if(f == NULL)
     
    833838    bailOut(REGLOOKUP_EXIT_NOINPUT, "ERROR: Failed to create REGFI_FILE structure.\n");
    834839  }
    835 
    836   if(print_verbose)
    837     regfi_set_message_mask(f, REGFI_MSG_ERROR|REGFI_MSG_WARN|REGFI_MSG_INFO);
    838   else
    839     regfi_set_message_mask(f, REGFI_MSG_ERROR);
    840840
    841841  if(print_header)
     
    994994
    995995  regfi_free(f);
     996  regfi_log_stop();
    996997  close(fd);
    997998
Note: See TracChangeset for help on using the changeset viewer.