FUNCTION::RETURNSTR(3stap) Errno Tapset FUNCTION::RETURNSTR(3stap)

# [NAME](#NAME)

function::returnstr - Formats the return value as a string

# [SYNOPSIS](#SYNOPSIS)

```


    returnstr:string(format:long)
```

# [ARGUMENTS](#ARGUMENTS)

*format*

Variable to determine return type base value

# [DESCRIPTION](#DESCRIPTION)

This function is used by the nd\_syscall tapset, and returns a string. Set format equal to 1 for a decimal, 2 for hex, 3 for octal.

Note that this function should only be used in dwarfless probes (i.e. 'kprobe.function(“foo”)'). Other probes should use **return\_str**.

# [SEE ALSO0](#SEE_ALSO0)

[*tapset::errno*(3stap)](/man/enterprise-packages/systemtap/tapset::errno.3stap)

September 2026 SystemTap Tapset Reference Ver

---

Document: function::returnstr(3stap) from systemtap 5.6-r1 (Chainguard OS)
Source: https://sourceware.org/git/systemtap.git
