Hi Rémi,
2010/12/3 Rémi Denis-Courmont <remi.denis-courmont(a)nokia.com>:
---
drivers/isimodem/sim.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/drivers/isimodem/sim.c b/drivers/isimodem/sim.c
index b79c52a..0b3d2ae 100644
--- a/drivers/isimodem/sim.c
+++ b/drivers/isimodem/sim.c
@@ -428,7 +428,8 @@ static void sim_reachable_cb(GIsiClient *client, gboolean alive,
struct ofono_sim *sim = opaque;
if (!alive) {
- DBG("SIM client: %s", strerror(-g_isi_client_error(client)));
+ errno = -g_isi_client_error(client);
+ DBG("SIM client: %m");
I'm not getting how this improves things, as opposed to obfuscating
the code. And in any case, in the refactored gisi API, we have a
g_isi_msg_strerror() for this.
Cheers,
Aki