| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
Functions
crash_info.h File Reference
`#include <wireshark.h>`

Go to the source code of this file.

## Functions
WS_DLL_PUBLIC void | ws_vadd_crash_info (const char *fmt, va_list ap)
| Append formatted crash diagnostic information using a va_list.
WS_DLL_PUBLIC void | ws_add_crash_info (const char *fmt,...)
| Append formatted crash diagnostic information.

## Detailed Description

Routines to try to provide more useful information in crash dumps.

Wireshark - Network traffic analyzer By Gerald Combs geral.nosp@m.d@wi.nosp@m.resha.nosp@m.rk.o.nosp@m.rg Copyright 2006 Gerald Combs

SPDX-License-Identifier: GPL-2.0-or-later

## Function Documentation

## ◆ ws_add_crash_info()

WS_DLL_PUBLIC void ws_add_crash_info | ( | const char * | fmt,
|  |  | ...
| ) |  |

Append formatted crash diagnostic information.

Adds a formatted message to the crash info log. This is used to record contextual information during a crash or fatal error, aiding in post-mortem debugging and diagnostics.

Parameters

  fmt | Format string (printf-style).
  ... | Arguments corresponding to the format string.

## ◆ ws_vadd_crash_info()

WS_DLL_PUBLIC void ws_vadd_crash_info | ( | const char * | fmt,
|  | va_list | ap
| ) |  |

Append formatted crash diagnostic information using a va_list.

Adds a formatted message to the crash info log using a variable argument list. This function is typically used internally when forwarding variadic arguments.

Parameters

  fmt | Format string (printf-style).
  ap | va_list containing the arguments for the format string.