aboutsummaryrefslogtreecommitdiffstats
path: root/o3000.c
diff options
context:
space:
mode:
authorSophia Papagiannaki <papagiannaki@stettbacher.ch>2020-06-15 15:37:35 +0200
committerSophia Papagiannaki <papagiannaki@stettbacher.ch>2020-06-15 15:37:35 +0200
commit8da9dcf4f2387aa7f9c0aad28a87a04de98f3000 (patch)
tree9d0ea2f07f332a14a04e7c56668b8b8beb8a6616 /o3000.c
parentVersion 2.1.0 (diff)
downloado3000-driver-8da9dcf4f2387aa7f9c0aad28a87a04de98f3000.tar.gz
o3000-driver-8da9dcf4f2387aa7f9c0aad28a87a04de98f3000.zip
Modified some debug/error messages.
Diffstat (limited to '')
-rw-r--r--o3000.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/o3000.c b/o3000.c
index 1ea9f77..37c0ab7 100644
--- a/o3000.c
+++ b/o3000.c
@@ -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;
}