diff options
author | Marvin Borner | 2021-07-13 19:46:13 +0200 |
---|---|---|
committer | Marvin Borner | 2021-07-13 19:46:13 +0200 |
commit | c9b5256eb58fd4dce5b027c1a2aadaaf2638c33b (patch) | |
tree | 871dd1de7378f22f69c7009e44c7ac7e88f5d8ea /src/loader/device.c | |
parent | 08cd951ea8410bc87e316e6c11d34a118437ba8b (diff) |
Diffstat (limited to 'src/loader/device.c')
-rw-r--r-- | src/loader/device.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/loader/device.c b/src/loader/device.c index 9c3e2ee..eb2bdd0 100644 --- a/src/loader/device.c +++ b/src/loader/device.c @@ -51,8 +51,8 @@ void device_foreach(enum device_type type, u8 (*cb)(struct dev *)) } u8 device_register(enum device_type type, char *name, u32 data, - s32 (*read)(void *, u32, u32, struct dev *), - s32 (*write)(const void *, u32, u32, struct dev *)) + s32 (*read)(void *, u32, u32, struct dev *), + s32 (*write)(const void *, u32, u32, struct dev *)) { static u8 id = 0; assert(++id < 0xff); @@ -79,6 +79,7 @@ void device_print(void) struct dev *dev = &devices[i]; if (!dev->id) continue; - log("[DEV] %d: %s device: %s\n", dev->id, device_resolve_type(dev->type), dev->name); + log("[DEV] %d: %s device: %s\n", dev->id, device_resolve_type(dev->type), + dev->name); } } |