CDev: Fixed printf format specifier

This commit is contained in:
Lorenz Meier 2014-03-16 18:37:16 +01:00
parent 85b7670b44
commit bb7962936e
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ CDev::register_class_devname(const char *class_devname)
if (ret == OK) break;
} else {
char name[32];
snprintf(name, sizeof(name), "%s%u", class_devname, class_instance);
snprintf(name, sizeof(name), "%s%d", class_devname, class_instance);
ret = register_driver(name, &fops, 0666, (void *)this);
if (ret == OK) break;
}