Changeset 138 for trunk/src/reglookup-recover.c
- Timestamp:
- 02/08/09 14:53:48 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/reglookup-recover.c
r136 r138 2 2 * This program attempts to recover deleted data structures in a registry hive. 3 3 * 4 * Copyright (C) 2008 Timothy D. Morgan4 * Copyright (C) 2008-2009 Timothy D. Morgan 5 5 * 6 6 * This program is free software; you can redistribute it and/or modify … … 87 87 quoted_name[0] = '\0'; 88 88 89 fprintf(stderr, "WARN ING: NULL key name in NK record at offset %.8X.\n",89 fprintf(stderr, "WARN: NULL key name in NK record at offset %.8X.\n", 90 90 nk->offset); 91 91 } … … 125 125 if(size > REGFI_VK_MAX_DATA_LENGTH) 126 126 { 127 fprintf(stderr, "WARN ING: value data size %d larger than "127 fprintf(stderr, "WARN: value data size %d larger than " 128 128 "%d, truncating...\n", size, REGFI_VK_MAX_DATA_LENGTH); 129 129 size = REGFI_VK_MAX_DATA_LENGTH; … … 153 153 154 154 if(conv_error == NULL) 155 fprintf(stderr, "WARN ING: Could not quote value for '%s/%s'. "155 fprintf(stderr, "WARN: Could not quote value for '%s/%s'. " 156 156 "Memory allocation failure likely.\n", prefix, quoted_name); 157 157 else if(print_verbose) 158 fprintf(stderr, "WARN ING: Could not quote value for '%s/%s'. "158 fprintf(stderr, "WARN: Could not quote value for '%s/%s'. " 159 159 "Returned error: %s\n", prefix, quoted_name, conv_error); 160 160 } 161 161 /* XXX: should these always be printed? */ 162 162 else if(conv_error != NULL && print_verbose) 163 fprintf(stderr, " VERBOSE: While quoting value for '%s/%s', "163 fprintf(stderr, "INFO: While quoting value for '%s/%s', " 164 164 "warning returned: %s\n", prefix, quoted_name, conv_error); 165 165 … … 279 279 cur_ancestor = regfi_parse_nk(f, virt_offset+REGFI_REGF_SIZE, 280 280 max_length, true); 281 printMsgs(f); 282 281 283 if(cur_ancestor == NULL) 282 284 virt_offset = REGFI_OFFSET_NONE; … … 426 428 for(i=0; i < range_list_size(unalloc_cells); i++) 427 429 { 430 printMsgs(f); 428 431 cur_elem = range_list_get(unalloc_cells, i); 429 432 for(j=0; cur_elem->length > REGFI_NK_MIN_LENGTH … … 432 435 key = regfi_parse_nk(f, cur_elem->offset+j, 433 436 cur_elem->length-j, false); 437 printMsgs(f); 438 434 439 if(key != NULL) 435 440 { … … 587 592 for(i=0; i < range_list_size(unalloc_cells); i++) 588 593 { 594 printMsgs(f); 589 595 cur_elem = range_list_get(unalloc_cells, i); 590 596 for(j=0; j <= cur_elem->length; j+=8) … … 592 598 vk = regfi_parse_vk(f, cur_elem->offset+j, 593 599 cur_elem->length-j, false); 600 printMsgs(f); 601 594 602 if(vk != NULL) 595 603 { … … 654 662 for(i=0; i < range_list_size(unalloc_cells); i++) 655 663 { 664 printMsgs(f); 656 665 cur_elem = range_list_get(unalloc_cells, i); 657 666 for(j=0; j <= cur_elem->length; j+=8) … … 659 668 sk = regfi_parse_sk(f, cur_elem->offset+j, 660 669 cur_elem->length-j, false); 670 printMsgs(f); 671 661 672 if(sk != NULL) 662 673 { … … 741 752 bailOut(EX_NOINPUT, ""); 742 753 } 754 if(print_verbose) 755 regfi_set_message_mask(f, REGFI_MSG_ERROR|REGFI_MSG_WARN|REGFI_MSG_INFO); 756 else 757 regfi_set_message_mask(f, REGFI_MSG_ERROR); 743 758 744 759 if(print_header)
Note: See TracChangeset
for help on using the changeset viewer.