---
title: "dynamic-printf"
description: "Detect printf-style calls with a lone dynamic format."
image: "https://strider.gempir.com/og.png"
---

> Documentation Index
> Fetch the complete documentation index at: https://strider.gempir.com/llms.txt
> Use this file to discover all available pages before exploring further.

# dynamic-printf

**Default severity:** `warning`

Reports supported printf-style calls whose only format argument is dynamic.
Use a print-style function or an explicit `%s` format.

## Bad

```go
fmt.Printf(message)
```

## Good

```go
fmt.Printf("%s", message)
```

Source: https://strider.gempir.com/analyzers/dynamic-printf/index.mdx
