---
title: OSReportWithBacktrace
framework: driverkit
role: symbol
role_heading: Function
path: driverkit/osreportwithbacktrace
---

# OSReportWithBacktrace

Generates a backtrace and message for debugging.

## Declaration

```occ
void OSReportWithBacktrace(const char *str, ...);
```

## Parameters

- `str`: Printf-Like arguments to be logged, along with the backtrace of the caller.

## Discussion

Discussion Generates a backtrace and message for debugging. May be inoperative on release OS builds.

## See Also

### Additional Utilities

- [OSSynchronizeIO](driverkit/ossynchronizeio.md)
