mirror of
https://github.com/ipxe/ipxe
synced 2026-01-07 20:52:03 +03:00
Cleanups
Replace a printf with a DBG in timer_rtdsc.c Replace a printf in timer.c with assert Return proper error codes from timer drivers Signed-off-by: Alexey Zaytsev <alexey.zaytsev@gmail.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
|
||||
#include <gpxe/init.h>
|
||||
#include <gpxe/timer.h>
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <bits/cpu.h>
|
||||
#include <bits/timer2.h>
|
||||
@@ -78,8 +79,8 @@ static int rtdsc_ts_init(void)
|
||||
}
|
||||
}
|
||||
|
||||
printf("RTDSC timer not available on this machine.\n");
|
||||
return 1;
|
||||
DBG("RTDSC timer not available on this machine.\n");
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
struct timer rtdsc_ts __timer (01) = {
|
||||
|
||||
Reference in New Issue
Block a user