mirror of
https://github.com/akuker/RASCSI.git
synced 2024-12-25 03:32:16 +00:00
Added missing CR/LF to rasctl error message output (#403)
This commit is contained in:
parent
231f20daff
commit
8f7e0fa880
@ -142,7 +142,7 @@ int main(int argc, char* argv[])
|
|||||||
case 'i': {
|
case 'i': {
|
||||||
int id;
|
int id;
|
||||||
if (!GetAsInt(optarg, id)) {
|
if (!GetAsInt(optarg, id)) {
|
||||||
cerr << "Error: Invalid device ID " << optarg;
|
cerr << "Error: Invalid device ID " << optarg << endl;
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
device->set_id(id);
|
device->set_id(id);
|
||||||
@ -152,7 +152,7 @@ int main(int argc, char* argv[])
|
|||||||
case 'u': {
|
case 'u': {
|
||||||
int unit;
|
int unit;
|
||||||
if (!GetAsInt(optarg, unit)) {
|
if (!GetAsInt(optarg, unit)) {
|
||||||
cerr << "Error: Invalid unit " << optarg;
|
cerr << "Error: Invalid unit " << optarg << endl;
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
device->set_unit(unit);
|
device->set_unit(unit);
|
||||||
|
Loading…
Reference in New Issue
Block a user