- char *pos = &(attr->value[strlen(attr->value)-1]);
-
- if (pos[0] == '\n')
- pos[0] = '\0';
-
- printf("DEVMAJORMINOR '%s'\n", attr->value);
+ sscanf(attr->value, "%u:%u", &major, &minor);
+ printf("MAJOR %u\n", minor);
+ printf("MINOR %u\n", major);