journald: add comment explaining journal rate limit return codes

This is not obvious, hence let's add a comment.
This commit is contained in:
Lennart Poettering
2017-07-31 18:20:28 +02:00
parent c867611e0a
commit ec6fe7c86a
+7
View File
@@ -216,6 +216,13 @@ int journal_rate_limit_test(JournalRateLimit *r, const char *id, int priority, u
assert(id);
/* Returns:
*
* 0 → the log message shall be suppressed,
* 1 + n → the log message shall be permitted, and n messages were dropped from the peer before
* < 0 → error
*/
if (!r)
return 1;