summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2009-08-12 19:47:22 -0500
committerDenis Kenzior <denkenz@gmail.com>2009-08-12 19:49:23 -0500
commitd812ff8534b2c1e1837b04b12660e4d435498b1d (patch)
tree59e431864655ed30bb858584f846a460fc8cb370
parentb1d0bda4b3684a619855b3e3cf60c484cddf6d68 (diff)
downloadofono-d812ff8534b2c1e1837b04b12660e4d435498b1d.tar.bz2
Warn when (potentially) invalid input encountered
-rw-r--r--drivers/atmodem/phonebook.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/atmodem/phonebook.c b/drivers/atmodem/phonebook.c
index f9d7da19..6ead98ba 100644
--- a/drivers/atmodem/phonebook.c
+++ b/drivers/atmodem/phonebook.c
@@ -165,6 +165,16 @@ static void at_cpbr_notify(GAtResult *result, gpointer user_data)
char *tel_uri_utf8 = NULL;
text_utf8 = ucs2_to_utf8(text);
+
+ if (text_utf8 == NULL)
+ ofono_warn("Name field conversion to UTF8"
+ " failed, this can indicate a"
+ " problem with modem"
+ " integration, as this field"
+ " is required by 27.007."
+ " Contents of name reported"
+ " by modem: %s", text);
+
if (group)
group_utf8 = ucs2_to_utf8(group);
if (secondtext)