mirror of
https://github.com/akuker/RASCSI.git
synced 2024-06-07 13:53:33 +00:00
Logging update
This commit is contained in:
parent
cecb72df3e
commit
e2d4347ce6
|
@ -1589,6 +1589,10 @@ static void *MonThread(void *param)
|
||||||
}
|
}
|
||||||
|
|
||||||
default: {
|
default: {
|
||||||
|
LOGTRACE("Received unknown command %d", command.operation());
|
||||||
|
|
||||||
|
ReturnStatus(fd, false, "Unknown command", UNKNOWN_OPERATION);
|
||||||
|
|
||||||
// Wait until we become idle
|
// Wait until we become idle
|
||||||
while (active) {
|
while (active) {
|
||||||
usleep(500 * 1000);
|
usleep(500 * 1000);
|
||||||
|
|
|
@ -201,8 +201,10 @@ message PbOperationInfo {
|
||||||
enum PbErrorCode {
|
enum PbErrorCode {
|
||||||
// No error code available
|
// No error code available
|
||||||
NO_ERROR_CODE = 0;
|
NO_ERROR_CODE = 0;
|
||||||
|
// The client sent an operation code not supported by this server
|
||||||
|
UNKNOWN_OPERATION = 1;
|
||||||
// Authentication/Authorization error
|
// Authentication/Authorization error
|
||||||
UNAUTHORIZED = 1;
|
UNAUTHORIZED = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// The supported file extensions mapped to their respective device types
|
// The supported file extensions mapped to their respective device types
|
||||||
|
|
Loading…
Reference in New Issue
Block a user