diff options
author | Sophia Papagiannaki <papagiannaki@stettbacher.ch> | 2020-06-15 15:37:35 +0200 |
---|---|---|
committer | Sophia Papagiannaki <papagiannaki@stettbacher.ch> | 2020-06-15 15:37:35 +0200 |
commit | 8da9dcf4f2387aa7f9c0aad28a87a04de98f3000 (patch) | |
tree | 9d0ea2f07f332a14a04e7c56668b8b8beb8a6616 /o3000.c | |
parent | Version 2.1.0 (diff) | |
download | o3000-driver-8da9dcf4f2387aa7f9c0aad28a87a04de98f3000.tar.gz o3000-driver-8da9dcf4f2387aa7f9c0aad28a87a04de98f3000.zip |
Modified some debug/error messages.
Diffstat (limited to '')
-rw-r--r-- | o3000.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -882,7 +882,7 @@ static int check_sessions(void) { } } if (i < MAX_NUM_SESSION) { - printf("%s: Session %d is still open\n", __func__, i); + printf("%s: Session %d is still open.\n", __func__, i); return O3000_ERROR_SESSION_STILL_OPEN; } return 0; @@ -902,18 +902,18 @@ int __stdcall o3000_firmware_update(unsigned char *data, int data_len) { // paranoia checks if(data == NULL) { ret = O3000_ERROR_NOT_VALID_ARGUMENT; - printf("%s: Data pointer is NULL. error: %d\n", __func__, ret); + printf("%s: Data pointer is NULL. error code: %d.\n", __func__, ret); return ret; } if(data_len <= 0) { ret = O3000_ERROR_NOT_VALID_ARGUMENT; - printf("%s: Length of data is negative. error: %d\n", __func__, ret); + printf("%s: Length of data is negative. error code: %d.\n", __func__, ret); return ret; } // checking whether all connections are closed if ((ret = check_sessions())) { - printf("%s: Cannot proceed to firmware update: error %d\n", __func__, ret); + printf("%s: Cannot proceed to firmware update: error code: %d.\n", __func__, ret); return ret; } |