Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Aug 2022 18:01:07 +0200
From:      Mateusz Piotrowski <0mp@FreeBSD.org>
To:        Domagoj Stolfa <domagoj.stolfa@gmail.com>
Cc:        freebsd-dtrace@freebsd.org
Subject:   Re: Converting int to a string in DTrace
Message-ID:  <E40C71BA-6ABA-4542-A4CB-CDB93BB126E3@FreeBSD.org>
In-Reply-To: <cce03483-a994-777d-dae0-d28ed779aadd@gmail.com>
References:  <317C65CC-5BF0-422D-80E9-4340CD241569@FreeBSD.org> <cce03483-a994-777d-dae0-d28ed779aadd@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_F03FF6C7-9C86-493A-A802-87D06D353227
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

Hey Domagoj!

> On 30. Aug 2022, at 17:58, Domagoj Stolfa <domagoj.stolfa@gmail.com> =
wrote:
>=20
>=20
>         this->unit_number =3D args[1]->unit_number >=3D 0 ? =
lltostr(args[1]->unit_number) : "";

This is exactly what  I was looking for, thanks!

Is it documented somewhere on FreeBSD?

Best,
Mateusz=

--Apple-Mail=_F03FF6C7-9C86-493A-A802-87D06D353227
Content-Transfer-Encoding: 7bit
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hey Domagoj!<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 30. Aug 2022, at 17:58, Domagoj Stolfa &lt;<a href="mailto:domagoj.stolfa@gmail.com" class="">domagoj.stolfa@gmail.com</a>&gt; wrote:</div><div class=""><div class=""><p class=""><br class=""></p>
    <div class="">
      <div class="">&nbsp; &nbsp; &nbsp; &nbsp; this-&gt;unit_number =
        args[1]-&gt;unit_number &gt;= 0 ?
        lltostr(args[1]-&gt;unit_number) : "";</div>
      </div></div></div></blockquote><br class=""></div><div>This is exactly what &nbsp;I was looking for, thanks!</div><div><br class=""></div><div>Is it documented somewhere on FreeBSD?</div><div><br class=""></div><div>Best,</div><div>Mateusz</div></body></html>
--Apple-Mail=_F03FF6C7-9C86-493A-A802-87D06D353227--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E40C71BA-6ABA-4542-A4CB-CDB93BB126E3>