Move error messages to stderr

This commit is contained in:
Gareth Evans
2017-02-01 15:00:37 +00:00
parent e4ca9f3099
commit 29df12461b
5 changed files with 8 additions and 8 deletions

View File

@@ -12,8 +12,8 @@ double EricssonpathLoss(float f, float TxH, float RxH, float d, int mode)
double a0 = 36.2, a1 = 30.2, a2 = -12, a3 = 0.1;
if (f < 150 || f > 3500) {
printf
("Error: Ericsson9999 model frequency range 150-3500MHz\n");
fprintf
(stderr,"Error: Ericsson9999 model frequency range 150-3500MHz\n");
exit(EXIT_FAILURE);
}