Changeset 18413 for trunk/psModules/src/config/pmConfig.c
- Timestamp:
- Jul 3, 2008, 10:03:53 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/config/pmConfig.c (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/config/pmConfig.c
r18164 r18413 415 415 darkNorm->data.md = new; 416 416 } else if (darkNorm->type != PS_DATA_METADATA) { 417 psWarning("DARK.NORM in camera %s is not of type STR or METADATA (%x)", cameraName, darkNorm->type); 417 psWarning("DARK.NORM in camera %s is not of type STR or METADATA (%x)", 418 cameraName, darkNorm->type); 418 419 } 419 420 } else { … … 861 862 } else { 862 863 char *dbserver = argv[argNum]; // The camera configuration file to read 863 if (!psMetadataAddStr(config->complete, PS_LIST_TAIL, "DBSERVER", PS_META_REPLACE, NULL, dbserver)) { 864 if (!psMetadataAddStr(config->complete, PS_LIST_TAIL, "DBSERVER", PS_META_REPLACE, 865 NULL, dbserver)) { 864 866 psWarning("Failed to overwrite .ipprc DBSERVER value"); 865 867 } … … 973 975 if (! headerItem) { 974 976 // rule item not found in header 975 psTrace("psModules.config ", 5, "Can't find %s", ruleItem->name);977 psTrace("psModules.config.format", 5, "Can't find %s", ruleItem->name); 976 978 *valid = false; 977 979 continue; … … 982 984 // Check to see if the rule works 983 985 if (!psMetadataItemCompare(headerItem, ruleItem)) { 984 psTrace("psModules.config ", 5, "%s doesn't match.", ruleItem->name);986 psTrace("psModules.config.format", 5, "%s doesn't match.", ruleItem->name); 985 987 *valid = false; 986 988 } … … 996 998 if (psMetadataItemCompare(headerItem, entry)) { 997 999 found = true; 998 psTrace("psModules.config ", 5, "%s in multi list matches.", ruleItem->name);1000 psTrace("psModules.config.format", 5, "%s in multi list matches.", ruleItem->name); 999 1001 break; 1000 1002 } … … 1002 1004 if (!found) { 1003 1005 *valid = false; 1004 psTrace("psModules.config ", 5, "%s doesn't match.", ruleItem->name);1006 psTrace("psModules.config.format", 5, "%s doesn't match.", ruleItem->name); 1005 1007 } 1006 1008 continue; … … 1060 1062 psMetadata *testFormat = formatsItem->data.md; // Format to test against 1061 1063 1062 psTrace("psModules.config ", 5, "trying format %s", formatsItem->name);1064 psTrace("psModules.config.format", 5, "trying format %s", formatsItem->name); 1063 1065 1064 1066 bool valid = false; … … 1071 1073 if (valid) { 1072 1074 if (!*format) { 1073 psLogMsg("psModules.config ", PS_LOG_INFO, "Camera %s, format %s matches header.\n",1075 psLogMsg("psModules.config.format", PS_LOG_INFO, "Camera %s, format %s matches header.\n", 1074 1076 cameraName, formatsItem->name); 1075 1077 *format = psMemIncrRefCounter(testFormat); … … 1091 1093 // camera. If we are discovering the camera (config->camera == NULL), then we also load the 1092 1094 // recipe files for the camera. 1093 psMetadata *pmConfigCameraFormatFromHeader(psMetadata **camera, psString *formatName, pmConfig *config, const psMetadata *header, bool readRecipes) 1095 psMetadata *pmConfigCameraFormatFromHeader(psMetadata **camera, psString *formatName, pmConfig *config, 1096 const psMetadata *header, bool readRecipes) 1094 1097 { 1095 1098 PS_ASSERT_PTR_NON_NULL(config, NULL); … … 1123 1126 while ((camerasItem = psMetadataGetAndIncrement(camerasIter))) { 1124 1127 // Open the camera information 1125 psTrace("psModules.config ", 3, "Inspecting camera %s (%s)\n", camerasItem->name,1128 psTrace("psModules.config.format", 3, "Inspecting camera %s (%s)\n", camerasItem->name, 1126 1129 camerasItem->comment); 1127 1130 assert(camerasItem->type == PS_DATA_METADATA); // It should be because we've read it in or deleted
Note:
See TracChangeset
for help on using the changeset viewer.
