Replace cout statement with SG_LOG.
This commit is contained in:
parent
384c3c254a
commit
0387b3a4ec
1 changed files with 1 additions and 1 deletions
|
@ -198,7 +198,7 @@ void ATC610xSetLamp( int fd, int channel, bool value ) {
|
||||||
buf[2] = 0;
|
buf[2] = 0;
|
||||||
result = write( fd, buf, 2 );
|
result = write( fd, buf, 2 );
|
||||||
if ( result != 2 ) {
|
if ( result != 2 ) {
|
||||||
cout << "Write failed" << endl;
|
SG_LOG( SG_IO, SG_ALERT, "Write failed" );
|
||||||
exit( -1 );
|
exit( -1 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue