• Home
  • Raw
  • Download

Lines Matching +full:unused +full:- +full:function

2  * logging.c - Centralised logging.  Originated from the Linux-NTFS project.
5 * Copyright (c) 2005-2008 Szabolcs Szakacsits
6 * Copyright (c) 2010 Jean-Pierre Andre
19 * along with this program (in the main directory of the NTFS-3G
21 * Foundation,Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
66 * struct ntfs_logging - Control info for the logging system
69 * @handler: Function to perform the actual logging
99 * ntfs_log_get_levels - Get a list of the current logging levels
103 * Returns: Log levels in a 32-bit field
111 * ntfs_log_set_levels - Enable extra logging levels
112 * @levels: 32-bit field of log levels to set
128 * ntfs_log_clear_levels - Disable some logging levels
129 * @levels: 32-bit field of log levels to clear
146 * ntfs_log_get_flags - Get a list of logging style flags
150 * Returns: Logging flags in a 32-bit field
158 * ntfs_log_set_flags - Enable extra logging style flags
159 * @flags: 32-bit field of logging flags to set
175 * ntfs_log_clear_flags - Disable some logging styles
176 * @flags: 32-bit field of logging flags to clear
193 * ntfs_log_get_stream - Default output streams for logging levels
230 * ntfs_log_get_prefix - Default prefixes for logging levels
282 * ntfs_log_set_handler - Provide an alternate logging handler
283 * @handler: function to perform the logging
294 openlog("ntfs-3g", LOG_PID, LOG_USER); in ntfs_log_set_handler()
301 * ntfs_log_redirect - Pass on the request to the real handler
302 * @function: Function in which the log line occurred
307 * @format: printf-style formatting string
310 * This is just a redirector function. The arguments are simply passed to the
313 * Returns: -1 Error occurred
317 int ntfs_log_redirect(const char *function, const char *file, in ntfs_log_redirect() argument
329 ret = ntfs_log.handler(function, file, line, level, data, format, args); in ntfs_log_redirect()
338 * ntfs_log_handler_syslog - syslog logging handler
339 * @function: Function in which the log line occurred
344 * @format: printf-style formatting string
349 * Returns: -1 Error occurred
359 int ntfs_log_handler_syslog(const char *function __attribute__((unused)), in ntfs_log_handler_syslog() argument
360 const char *file __attribute__((unused)), in ntfs_log_handler_syslog()
361 int line __attribute__((unused)), u32 level, in ntfs_log_handler_syslog()
362 void *data __attribute__((unused)), in ntfs_log_handler_syslog()
380 strncat(logbuf, ": ", LOG_LINE_LEN - ret - 1); in ntfs_log_handler_syslog()
381 strncat(logbuf, strerror(olderr), LOG_LINE_LEN - (ret + 3)); in ntfs_log_handler_syslog()
395 * (not quite satisfactory : this appears before the ntfs-g banner,
405 openlog("ntfs-3g", LOG_PID, LOG_USER); in ntfs_log_early_error()
416 * ntfs_log_handler_fprintf - Basic logging handler
417 * @function: Function in which the log line occurred
422 * @format: printf-style formatting string
432 * Returns: -1 Error occurred
436 int ntfs_log_handler_fprintf(const char *function, const char *file, in ntfs_log_handler_fprintf() argument
453 tab--; in ntfs_log_handler_fprintf()
473 if ((ntfs_log.flags & NTFS_LOG_FLAG_FUNCTION) || /* Source function */ in ntfs_log_handler_fprintf()
475 ret += fprintf(stream, "%s(): ", function); in ntfs_log_handler_fprintf()
492 * ntfs_log_handler_null - Null logging handler (no output)
493 * @function: Function in which the log line occurred
498 * @format: printf-style formatting string
506 int ntfs_log_handler_null(const char *function __attribute__((unused)), const char *file __attribut… in ntfs_log_handler_null() argument
507 …int line __attribute__((unused)), u32 level __attribute__((unused)), void *data __attribute__((unu… in ntfs_log_handler_null()
508 const char *format __attribute__((unused)), va_list args __attribute__((unused))) in ntfs_log_handler_null()
514 * ntfs_log_handler_stdout - All logs go to stdout
515 * @function: Function in which the log line occurred
520 * @format: printf-style formatting string
528 * Note: This function calls ntfs_log_handler_fprintf to do the main work.
530 * Returns: -1 Error occurred
534 int ntfs_log_handler_stdout(const char *function, const char *file, in ntfs_log_handler_stdout() argument
540 return ntfs_log_handler_fprintf(function, file, line, level, data, format, args); in ntfs_log_handler_stdout()
544 * ntfs_log_handler_outerr - Logs go to stdout/stderr depending on level
545 * @function: Function in which the log line occurred
550 * @format: printf-style formatting string
557 * If @data is NULL, the function ntfs_log_get_stream will be called
559 * Note: This function calls ntfs_log_handler_fprintf to do the main work.
561 * Returns: -1 Error occurred
565 int ntfs_log_handler_outerr(const char *function, const char *file, in ntfs_log_handler_outerr() argument
571 return ntfs_log_handler_fprintf(function, file, line, level, data, format, args); in ntfs_log_handler_outerr()
575 * ntfs_log_handler_stderr - All logs go to stderr
576 * @function: Function in which the log line occurred
581 * @format: printf-style formatting string
589 * Note: This function calls ntfs_log_handler_fprintf to do the main work.
591 * Returns: -1 Error occurred
595 int ntfs_log_handler_stderr(const char *function, const char *file, in ntfs_log_handler_stderr() argument
601 return ntfs_log_handler_fprintf(function, file, line, level, data, format, args); in ntfs_log_handler_stderr()
606 * ntfs_log_parse_option - Act upon command line options
610 * with "--log-". Options cause log levels to be enabled in @ntfs_log (the
620 if (strcmp(option, "--log-debug") == 0) { in ntfs_log_parse_option()
623 } else if (strcmp(option, "--log-verbose") == 0) { in ntfs_log_parse_option()
626 } else if (strcmp(option, "--log-quiet") == 0) { in ntfs_log_parse_option()
629 } else if (strcmp(option, "--log-trace") == 0) { in ntfs_log_parse_option()