mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 02:49:02 -04:00
Ensure that ferr() is a single line command
This commit is contained in:
parent
b5ce575981
commit
6c3e5e91fd
1 changed files with 6 additions and 5 deletions
|
|
@ -563,13 +563,14 @@ void state_device(struct snapraid_state* state, int operation)
|
|||
}
|
||||
|
||||
if (devquery(&high, &low, operation) != 0) {
|
||||
const char* ope = 0;
|
||||
switch (operation) {
|
||||
case DEVICE_UP : ferr("Spinup"); break;
|
||||
case DEVICE_DOWN : ferr("Spindown"); break;
|
||||
case DEVICE_LIST : ferr("List"); break;
|
||||
case DEVICE_SMART : ferr("SMART"); break;
|
||||
case DEVICE_UP : ope = "Spinup"; break;
|
||||
case DEVICE_DOWN : ope = "Spindown"; break;
|
||||
case DEVICE_LIST : ope = "List"; break;
|
||||
case DEVICE_SMART : ope = "SMART"; break;
|
||||
}
|
||||
ferr(" unsupported in this platform.\n");
|
||||
ferr("%s unsupported in this platform.\n", ope);
|
||||
} else {
|
||||
|
||||
#ifndef _WIN32
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue