Hi,
Is there a printk() equivelent for SPDK?
I want to write debug messages to the system log (dmesg).
Thanks,
Dale
Show replies by date
Hi Dale,
Please note that SPDK is working in userspace rather than kernelspace.
Therefore we don’t have any function for writing to dmesg log.
However, because it’s userspace you can just use one of the spdk log function, e.g.
SPDK_NOTICELOG().
It will write to stderr and system logger. You can also use just printf for debugging.
--
Best Regards,
Piotr Pelpliński
From: SPDK [mailto:spdk-bounces@lists.01.org] On Behalf Of Dale Corlett
Sent: Wednesday, December 14, 2016 07:02
To: Storage Performance Development Kit <spdk(a)lists.01.org>
Subject: [SPDK] SPDK printk?
Hi,
Is there a printk() equivelent for SPDK?
I want to write debug messages to the system log (dmesg).
Thanks,
Dale
--------------------------------------------------------------------
Intel Technology Poland sp. z o.o.
ul. Slowackiego 173 | 80-298 Gdansk | Sad Rejonowy Gdansk Polnoc | VII Wydzial Gospodarczy
Krajowego Rejestru Sadowego - KRS 101882 | NIP 957-07-52-316 | Kapital zakladowy 200.000
PLN.
Ta wiadomosc wraz z zalacznikami jest przeznaczona dla okreslonego adresata i moze
zawierac informacje poufne. W razie przypadkowego otrzymania tej wiadomosci, prosimy o
powiadomienie nadawcy oraz trwale jej usuniecie; jakiekolwiek
przegladanie lub rozpowszechnianie jest zabronione.
This e-mail and any attachments may contain confidential material for the sole use of the
intended recipient(s). If you are not the intended recipient, please contact the sender
and delete all copies; any review or distribution by
others is strictly prohibited.