summaryrefslogtreecommitdiffstats
path: root/src/modem.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2012-01-07 13:23:32 -0600
committerDenis Kenzior <denkenz@gmail.com>2012-01-07 13:23:32 -0600
commit28af056870b3e8333f93ecf806d663741b930be4 (patch)
treec4d988f3f72cbf608bcf2d481e6fec0c7ff216ce /src/modem.c
parentbddacd87740b3678fa800749087f0ee9eff034c4 (diff)
downloadofono-28af056870b3e8333f93ecf806d663741b930be4.tar.bz2
modem: Tweak produced path
For drivers that contain digits at the end the currently produced path can be somewhat confusing.
Diffstat (limited to 'src/modem.c')
-rw-r--r--src/modem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modem.c b/src/modem.c
index 2fabe17f..2c447d88 100644
--- a/src/modem.c
+++ b/src/modem.c
@@ -1798,7 +1798,7 @@ struct ofono_modem *ofono_modem_create(const char *name, const char *type)
return NULL;
if (name == NULL)
- snprintf(path, sizeof(path), "/%s%d", type, next_modem_id);
+ snprintf(path, sizeof(path), "/%s_%d", type, next_modem_id);
else
snprintf(path, sizeof(path), "/%s", name);