Changeset 1559 in MondoRescue
- Timestamp:
- Jul 25, 2007, 12:36:06 AM (17 years ago)
- Location:
- branches/stable/mondo/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/include/my-stuff.h
r1529 r1559 259 259 * Log file, function, line, and @p x. 260 260 */ 261 #define iamhere(x) { log_it("%s, %s, %ld: %s", __FILE__, __FUNCTION__, __LINE__, x);}261 #define iamhere(x) {mr_msg(2, x);} 262 262 263 263 /** -
branches/stable/mondo/src/lib/mr_conf.c
r1545 r1559 54 54 55 55 /*warnings*/ 56 #define MRCONF_STR_SET_TO_ZERO _("variable will be set to 0 ")56 #define MRCONF_STR_SET_TO_ZERO _("variable will be set to 0:") 57 57 #define MRCONF_STR_IGNORE _("has no value, ignoring it") 58 58 #define MRCONF_STR_CLOSE_BUT_NOT_OPEN _("attempt to close mr_conf but it has not been opened yet") … … 231 231 232 232 if (*p != '"') { 233 mr_conf_error_msg(MRCONF_STRING_QUOTE, "");233 mr_conf_error_msg(MRCONF_STRING_QUOTE, field_name); 234 234 return (NULL); 235 235 } … … 240 240 r--; 241 241 if (*r != '"') { 242 mr_conf_error_msg(MRCONF_STRING_QUOTE, "");242 mr_conf_error_msg(MRCONF_STRING_QUOTE, field_name); 243 243 return (NULL); 244 244 } … … 321 321 } 322 322 if (buffer[i] == (char) 0) { 323 mr_conf_error_msg(MRCONF_STRING_ENDQUOTE, "");323 mr_conf_error_msg(MRCONF_STRING_ENDQUOTE, buffer); 324 324 } 325 325 } … … 389 389 switch (error_code) { 390 390 case MRCONF_BAD_FILE: 391 mr_msg_int(1,line,file,"%s %s %s \n", MRCONF_STR_ERROR, MRCONF_STR_BAD_FILE,391 mr_msg_int(1,line,file,"%s %s %s", MRCONF_STR_ERROR, MRCONF_STR_BAD_FILE, 392 392 add_line); 393 393 break; 394 394 395 395 case MRCONF_READING_FAILED: 396 mr_msg_int(1,line,file,"%s %s \n", MRCONF_STR_ERROR, MRCONF_STR_READING_FAILED);396 mr_msg_int(1,line,file,"%s %s", MRCONF_STR_ERROR, MRCONF_STR_READING_FAILED); 397 397 break; 398 398 399 399 case MRCONF_FIELD_NOT_FOUND: 400 mr_msg_int(1,line,file,"%s %s \"%s\" \n", MRCONF_STR_ERROR, MRCONF_STR_FIELD_NOT_FOUND, add_line);401 mr_msg_int(1,line,file,"%s %s \n", MRCONF_STR_WARNING, MRCONF_STR_SET_TO_ZERO);400 mr_msg_int(1,line,file,"%s %s \"%s\"", MRCONF_STR_ERROR, MRCONF_STR_FIELD_NOT_FOUND, add_line); 401 mr_msg_int(1,line,file,"%s %s", MRCONF_STR_WARNING, MRCONF_STR_SET_TO_ZERO); 402 402 break; 403 403 404 404 case MRCONF_FIELD_NO_VALUE: 405 mr_msg_int(1,line,file,"%s %s \"%s\" \n", MRCONF_STR_ERROR, MRCONF_STR_FIELD_NO_VALUE, add_line);406 mr_msg_int(1,line,file,"%s %s \n", MRCONF_STR_WARNING, MRCONF_STR_IGNORE);405 mr_msg_int(1,line,file,"%s %s \"%s\"", MRCONF_STR_ERROR, MRCONF_STR_FIELD_NO_VALUE, add_line); 406 mr_msg_int(1,line,file,"%s %s", MRCONF_STR_WARNING, MRCONF_STR_IGNORE); 407 407 break; 408 408 409 409 case MRCONF_CLOSE_BUT_NOT_OPEN: 410 mr_msg_int(1,line,file,"%s %s \n", MRCONF_STR_WARNING, MRCONF_STR_CLOSE_BUT_NOT_OPEN);410 mr_msg_int(1,line,file,"%s %s", MRCONF_STR_WARNING, MRCONF_STR_CLOSE_BUT_NOT_OPEN); 411 411 break; 412 412 413 413 case MRCONF_CALL_BUT_NOT_OPEN: 414 mr_msg_int(1,line,file,"%s %s \n", MRCONF_STR_WARNING, MRCONF_STR_CALL_BUT_NOT_OPEN);414 mr_msg_int(1,line,file,"%s %s", MRCONF_STR_WARNING, MRCONF_STR_CALL_BUT_NOT_OPEN); 415 415 break; 416 416 417 417 case MRCONF_OPEN_OPENED: 418 mr_msg_int(1,line,file,"%s %s \n", MRCONF_STR_ERROR, MRCONF_STR_OPEN_OPENED);418 mr_msg_int(1,line,file,"%s %s", MRCONF_STR_ERROR, MRCONF_STR_OPEN_OPENED); 419 419 break; 420 420 421 421 case MRCONF_STRING_QUOTE: 422 mr_msg_int(1,line,file,"%s %s \n", MRCONF_STR_ERROR, MRCONF_STR_STRING_QUOTE);422 mr_msg_int(1,line,file,"%s %s", MRCONF_STR_ERROR, MRCONF_STR_STRING_QUOTE); 423 423 break; 424 424 425 425 case MRCONF_STRING_ENDQUOTE: 426 mr_msg_int(1,line,file,"%s %s \n", MRCONF_STR_ERROR, MRCONF_STR_STRING_ENDQUOTE);426 mr_msg_int(1,line,file,"%s %s", MRCONF_STR_ERROR, MRCONF_STR_STRING_ENDQUOTE); 427 427 break; 428 428 429 429 default: 430 mr_msg_int(1,line,file,"%s %s \n", MRCONF_STR_ERROR, MRCONF_STR_DEFAULT_ERROR);431 break; 432 } 433 } 434 } 430 mr_msg_int(1,line,file,"%s %s", MRCONF_STR_ERROR, MRCONF_STR_DEFAULT_ERROR); 431 break; 432 } 433 } 434 }
Note:
See TracChangeset
for help on using the changeset viewer.