mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Clarify minfree warning message in check_space(..)
- State that the units are kB. - Be more complete/concise in terms of what is required (in this case `minfree` must be at least `X`kB) MFC after: 7 weeks Sponsored by: Dell EMC Isilon
This commit is contained in:
parent
f6ef11cc75
commit
e1f7a5d672
1 changed files with 2 additions and 1 deletions
|
|
@ -303,7 +303,8 @@ check_space(const char *savedir, off_t dumpsize, int bounds)
|
|||
needed -= saved_dump_size(bounds);
|
||||
if ((minfree > 0 ? spacefree : totfree) - needed < minfree) {
|
||||
syslog(LOG_WARNING,
|
||||
"no dump, not enough free space on device (%lld available, need %lld)",
|
||||
"no dump: not enough free space on device (%lldkB "
|
||||
"available; need at least %lldkB)",
|
||||
(long long)(minfree > 0 ? spacefree : totfree),
|
||||
(long long)needed);
|
||||
return (0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue