PCIe driver: show max modules as decimal

This commit is contained in:
2023-11-17 16:48:53 +01:00
parent b69d9cb477
commit 760484635e
+1 -1
View File
@@ -85,7 +85,7 @@ static ssize_t max_modules_show(struct device *dev,
char *buf) {
struct miscdevice* miscdev = dev_get_drvdata(dev);
struct jfjoch_drvdata* drvdata = container_of(miscdev, struct jfjoch_drvdata, miscdev);
return scnprintf(buf, PAGE_SIZE, "%x", drvdata->max_modules);
return scnprintf(buf, PAGE_SIZE, "%d", drvdata->max_modules);
}
static ssize_t stalls_show(struct device *dev,