---
name: "function::returnstr"
section: "3stap"
platform: "linux"
package: "systemtap-doc"
version: "5.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/function::returnstr"
---

# function::returnstr(3stap)

Formats the return value as a string

## NAME

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

## SYNOPSIS

```
    returnstr:string(format:long)
```

## ARGUMENTS

*format*

Variable to determine return type base value

## 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

[*tapset::errno*(3stap)](/tapset::errno/3stap.md)
