# GeneralPurposeAllocator: use std.log instead of std.debug.print · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/20510d209be44590f390c370f9e477d84ab46454)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 20510d209be44590f390c370f9e477d84ab46454

Requested commit: 20510d209be44590f390c370f9e477d84ab46454

Commit: 20510d209be44590f390c370f9e477d84ab46454

Tree: d8d9cae0a71467a27d54292b1cfbb4aabfd094b4

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
GeneralPurposeAllocator: use std.log instead of std.debug.print

`std.builtin.StackTrace` gains a `format` function.

GeneralPurposeAllocator uses `std.log.err` instead of directly printing
to stderr. Some errors are recoverable.

The test runner is modified to fail the test run if any log messages of
"err" or worse severity are encountered.

self-hosted is modified to always print log messages of "err" severity
or worse even if they have not been explicitly enabled.

This makes GeneralPurposeAllocator available on the freestanding target.

```

## Parents

- [900a897e90eca08f78ef632fd11e01ec9bcb3674](https://git.cafe/gitcafe/zig/commit/900a897e90eca08f78ef632fd11e01ec9bcb3674?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/20510d209be44590f390c370f9e477d84ab46454?format=markdown)
