diff options
| author | Alexey Zaytsev | 2008-03-02 02:36:50 +0100 |
|---|---|---|
| committer | Alexey Zaytsev | 2008-03-02 02:36:50 +0100 |
| commit | 379c37bafba794b47afcb1e9970b6207fb0eb9f4 (patch) | |
| tree | 05d4e08cdf0708093b62c3d6fe8d58b9a036dc9f /src/arch/i386/drivers | |
| parent | Modify gPXE core and drivers to work with the new timer subsystem (diff) | |
| download | ipxe-379c37bafba794b47afcb1e9970b6207fb0eb9f4.tar.gz ipxe-379c37bafba794b47afcb1e9970b6207fb0eb9f4.tar.xz ipxe-379c37bafba794b47afcb1e9970b6207fb0eb9f4.zip | |
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>
Diffstat (limited to 'src/arch/i386/drivers')
| -rw-r--r-- | src/arch/i386/drivers/timer_rtdsc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/arch/i386/drivers/timer_rtdsc.c b/src/arch/i386/drivers/timer_rtdsc.c index 1cd2abead..336e3e6fc 100644 --- a/src/arch/i386/drivers/timer_rtdsc.c +++ b/src/arch/i386/drivers/timer_rtdsc.c @@ -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) = { |
