'\" t .\" Title: function::returnstr .\" Author: .\" Generator: DocBook XSL Stylesheets vsnapshot .\" Date: May 2021 .\" Manual: Errno Tapset .\" Source: SystemTap Tapset Reference .\" Language: English .\" .TH "FUNCTION::RETURNSTR" "3stap" "May 2021" "SystemTap Tapset Reference" "Errno Tapset" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" function::returnstr \- Formats the return value as a string .SH "SYNOPSIS" .sp .nf returnstr:string(format:long) .fi .SH "ARGUMENTS" .PP \fIformat\fR .RS 4 Variable to determine return type base value .RE .SH "DESCRIPTION" .PP 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\&. .PP Note that this function should only be used in dwarfless probes (i\&.e\&. \*(Aqkprobe\&.function(\(lqfoo\(rq)\*(Aq)\&. Other probes should use \fBreturn_str\fR\&. .SH SEE ALSO\n .IR tapset::errno (3stap)