Ensure that ferr() is a single line command

This commit is contained in:
Andrea Mazzoleni 2015-02-03 00:01:42 +01:00
parent b5ce575981
commit 6c3e5e91fd

View file

@ -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