diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-09-27 19:01:04 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-09-27 19:01:04 +0000 |
commit | 383eec1895fff4a83f26bb8244d86571dd5baef9 (patch) | |
tree | dc6eccf68932c71785ee86d688ebebeda2ac4025 /src/include | |
parent | 195267a6ac380d106d9409aa296885251d102c8e (diff) | |
download | gnunet-383eec1895fff4a83f26bb8244d86571dd5baef9.tar.gz gnunet-383eec1895fff4a83f26bb8244d86571dd5baef9.zip |
reducing error messages about missing configuration options by introducing new helper functions to print them uniformly
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_common.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/include/gnunet_common.h b/src/include/gnunet_common.h index 60bf191c6..bba5152c5 100644 --- a/src/include/gnunet_common.h +++ b/src/include/gnunet_common.h | |||
@@ -322,6 +322,8 @@ int | |||
322 | GNUNET_get_log_call_status (int caller_level, const char *comp, | 322 | GNUNET_get_log_call_status (int caller_level, const char *comp, |
323 | const char *file, const char *function, int line); | 323 | const char *file, const char *function, int line); |
324 | #endif | 324 | #endif |
325 | |||
326 | |||
325 | /** | 327 | /** |
326 | * Main log function. | 328 | * Main log function. |
327 | * | 329 | * |
@@ -400,6 +402,34 @@ GNUNET_log_from_nocheck (enum GNUNET_ErrorType kind, const char *comp, | |||
400 | 402 | ||
401 | 403 | ||
402 | /** | 404 | /** |
405 | * Log error message about missing configuration option. | ||
406 | * | ||
407 | * @param kind log level | ||
408 | * @param section section with missing option | ||
409 | * @param option name of missing option | ||
410 | */ | ||
411 | void | ||
412 | GNUNET_log_config_missing (enum GNUNET_ErrorType kind, | ||
413 | const char *section, | ||
414 | const char *option); | ||
415 | |||
416 | |||
417 | /** | ||
418 | * Log error message about invalid configuration option value. | ||
419 | * | ||
420 | * @param kind log level | ||
421 | * @param section section with invalid option | ||
422 | * @param option name of invalid option | ||
423 | * @param required what is required that is invalid about the option | ||
424 | */ | ||
425 | void | ||
426 | GNUNET_log_config_invalid (enum GNUNET_ErrorType kind, | ||
427 | const char *section, | ||
428 | const char *option, | ||
429 | const char *required); | ||
430 | |||
431 | |||
432 | /** | ||
403 | * Abort the process, generate a core dump if possible. | 433 | * Abort the process, generate a core dump if possible. |
404 | */ | 434 | */ |
405 | void | 435 | void |