---
title: "Print"
canonical_url: https://developer.repebble.com/pebbleos/docs/kernel/print/
last_updated: 2026-11-17
sdk_version: 4.44
---
# Print

Source: https://developer.repebble.com/pebbleos/docs/kernel/print/

`pbl/kernel/print.h` writes plain text for the system’s own messages, such as the boot banner:

```
pbl\_print("\*\*\* Booting PebbleOS %s \*\*\*\n", PBL\_VERSION\_TAG);
```

`pbl_print()` formats into a buffer on the stack, cut at one byte less than `CONFIG_KERNEL_PRINT_BUFFER_SIZE` (128 by default), and hands it to the output set with `pbl_print_set_output()` before returning. Lines end with the newline the caller writes. Nothing is filtered or recorded, which is what [Logging](https://developer.repebble.com/pebbleos/docs/subsystems/logging.md) is for, and it works from any context, before the scheduler runs too. Without an output, the text is dropped.

The kernel owns `pbl_print()`; the output belongs to whoever drives the console. With `CONFIG_CONSOLE`, `pbl_console_early_init()` sets the console port up for polled output during boot and registers it, with newlines sent as CR LF.

Generated from PebbleOS [9e782207f](https://github.com/coredevices/pebbleos/commit/9e782207f53f8f1c02f7b13ea40cdc092d7bab3d). This page is maintained in the pebbleos repository: [docs/kernel/print.md](https://github.com/coredevices/pebbleos/blob/9e782207f53f8f1c02f7b13ea40cdc092d7bab3d/docs/kernel/print.md).
