mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 07:07:52 +01:00
Fix number in error message
svn:r5369
This commit is contained in:
parent
4ea6d71a26
commit
669fdde91b
1 changed files with 2 additions and 2 deletions
|
@ -167,8 +167,8 @@ accounting_parse_options(or_options_t *options, int validate_only)
|
||||||
|
|
||||||
idx = unit==UNIT_DAY?1:2;
|
idx = unit==UNIT_DAY?1:2;
|
||||||
if (smartlist_len(items) != (idx+1)) {
|
if (smartlist_len(items) != (idx+1)) {
|
||||||
warn(LD_CONFIG,"Accounting unit '%s' requires %d arguments",
|
warn(LD_CONFIG,"Accounting unit '%s' requires %d argument%s.",
|
||||||
s, idx+1);
|
s, idx, (idx>1)?"s":"");
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
s = smartlist_get(items, idx);
|
s = smartlist_get(items, idx);
|
||||||
|
|
Loading…
Add table
Reference in a new issue