modem: Tweak produced path
authorDenis Kenzior <denkenz@gmail.com>
Sat, 7 Jan 2012 19:23:32 +0000 (13:23 -0600)
committerDenis Kenzior <denkenz@gmail.com>
Sat, 7 Jan 2012 19:23:32 +0000 (13:23 -0600)
For drivers that contain digits at the end the currently produced
path can be somewhat confusing.

src/modem.c

index 2fabe17..2c447d8 100644 (file)
@@ -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);