From e34d491ee14d6fc76294296552a070004493af32 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 18 Apr 2015 10:20:49 +0200 Subject: m doc + iprint and iprintf macros + siginfo on mds, mds-vt and mds-respawn MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- doc/info/mds.texinfo | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'doc/info') diff --git a/doc/info/mds.texinfo b/doc/info/mds.texinfo index 79449ae..05cd511 100644 --- a/doc/info/mds.texinfo +++ b/doc/info/mds.texinfo @@ -3885,7 +3885,8 @@ this to find out how large the buffer is so it can call @item @code{eprint} [(@code{const char* format}) @arrow{} @code{int}] A wrapper for @code{fprintf} that prints a string prefixed -with the value value of @code{*argv} to @code{stderr}. +with the value of @code{*argv} to @code{stderr}. +This wrapper also as a line feed to the end of the text. Because @code{eprintf} naïvely wraps @code{fprintf}, all `%':s in the string must be duplicated. @@ -3894,6 +3895,19 @@ Because @code{eprintf} naïvely wraps @code{fprintf}, all that can be used to insert values into the format string just like you can do in @code{fprintf}. +@item @code{iprint} [(@code{const char* format}) @arrow{} @code{int}] +A wrapper for @code{fprintf} that prints a string prefixed +with the value of @code{*argv}, as well a label telling the +user that the output is part of a state and statistics dump, +to @code{stderr}. This wrapper also as a line feed to the +end of the text. Because @code{eprintf} naïvely wraps +@code{fprintf}, all `%':s in the string must be duplicated. + +@item @code{iprintf} [(@code{const char* format, ...}) @arrow{} @code{int}] +@code{eprint} extends @code{iprint} with variadic arguments +that can be used to insert values into the format string +just like you can do in @code{fprintf}. + @item @code{with_mutex} [(@code{pthread_mutex_t mutex, instructions})] Wraps @code{instructions} with @code{errno = pthread_mutex_lock(mutex);} and @code{errno = pthread_mutex_unlock(mutex);}, so a set of -- cgit v1.2.3-70-g09d2