forked from Archive/PX4-Autopilot
CDev: Fixed printf format specifier
This commit is contained in:
parent
85b7670b44
commit
bb7962936e
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue