aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc/ipc_util.c
diff options
context:
space:
mode:
authorPaulK <contact@paulk.fr>2011-12-31 16:36:32 +0100
committerPaulK <contact@paulk.fr>2011-12-31 16:36:32 +0100
commit57baab4aa3fab37719c73de9e5a0757a5f1c9b40 (patch)
treec955e7d2499d4672dd27c7744af773ff5d9893f8 /samsung-ipc/ipc_util.c
parenteb6ac17bb7d991a03378d1021586f696d4ceeb42 (diff)
downloadexternal_libsamsung-ipc-57baab4aa3fab37719c73de9e5a0757a5f1c9b40.zip
external_libsamsung-ipc-57baab4aa3fab37719c73de9e5a0757a5f1c9b40.tar.gz
external_libsamsung-ipc-57baab4aa3fab37719c73de9e5a0757a5f1c9b40.tar.bz2
Moved nv_data functions and headers to rfs.c/rfs.h, plus some fixes
Diffstat (limited to 'samsung-ipc/ipc_util.c')
-rw-r--r--samsung-ipc/ipc_util.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/samsung-ipc/ipc_util.c b/samsung-ipc/ipc_util.c
index a9eab07..8001e5e 100644
--- a/samsung-ipc/ipc_util.c
+++ b/samsung-ipc/ipc_util.c
@@ -182,8 +182,8 @@ const char *ipc_command_to_str(int command) {
IPC_STR(IPC_SAT_CALL_PROCESSING)
IPC_STR(IPC_IMEI_START)
IPC_STR(IPC_IMEI_CHECK_DEVICE_INFO)
- default:
- return "IPC_UNKNOWN";
+ default:
+ return "IPC_UNKNOWN";
}
}
@@ -253,7 +253,7 @@ void *ipc_mtd_read(struct ipc_client *client, char *mtd_name, int size, int bloc
if(mtd_name == NULL || size <= 0 || block_size <= 0)
goto error;
- ipc_client_log(client, "mtd_read: reading 0x%x bytes from %s with 0x%x bytes block size\n", size, mtd_name, block_size);
+ ipc_client_log(client, "ipc_mtd_read: reading 0x%x bytes from %s with 0x%x bytes block size\n", size, mtd_name, block_size);
fd=open(mtd_name, O_RDONLY);
if(fd < 0)
@@ -272,7 +272,7 @@ void *ipc_mtd_read(struct ipc_client *client, char *mtd_name, int size, int bloc
offs = i * block_size;
if(ioctl(fd, MEMGETBADBLOCK, &offs) == 1)
{
- ipc_client_log(client, "mtd_read: warning: bad block at offset %lld\n", (long long int) offs);
+ ipc_client_log(client, "ipc_mtd_read: warning: bad block at offset %lld\n", (long long int) offs);
data_p+=block_size;
continue;
}
@@ -286,7 +286,7 @@ void *ipc_mtd_read(struct ipc_client *client, char *mtd_name, int size, int bloc
return mtd_p;
error:
- ipc_client_log(client, "%s: something went wrong\n", __func__);
+ ipc_client_log(client, "ipc_mtd_read: something went wrong\n");
return NULL;
}
@@ -301,7 +301,7 @@ void *ipc_file_read(struct ipc_client *client, char *file_name, int size, int bl
if(file_name == NULL || size <= 0 || block_size <= 0)
goto error;
- ipc_client_log(client, "file_read: reading 0x%x bytes from %s with 0x%x bytes block size\n", size, file_name, block_size);
+ ipc_client_log(client, "ipc_file_read: reading 0x%x bytes from %s with 0x%x bytes block size\n", size, file_name, block_size);
fd=open(file_name, O_RDONLY);
if(fd < 0)
@@ -326,7 +326,7 @@ void *ipc_file_read(struct ipc_client *client, char *file_name, int size, int bl
return file_p;
error:
- ipc_client_log(client, "%s: something went wrong\n", __func__);
+ ipc_client_log(client, "ipc_file_read: something went wrong\n");
return NULL;
}