diff --git a/examples/hello-sysfs.c b/examples/hello-sysfs.c index 6e4f7cf..863570b 100644 --- a/examples/hello-sysfs.c +++ b/examples/hello-sysfs.c @@ -23,7 +23,7 @@ static ssize_t myvariable_store(struct kobject *kobj, struct kobj_attribute *attr, char *buf, size_t count) { - sscanf(buf, "%du", &myvariable); + sscanf(buf, "%d", &myvariable); return count; }