journald: add comment explaining journal rate limit return codes
This is not obvious, hence let's add a comment.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user