Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F167690998
D16972.id47594.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D16972.id47594.diff
View Options
Index: head/sys/dev/efidev/efirtc.c
===================================================================
--- head/sys/dev/efidev/efirtc.c
+++ head/sys/dev/efidev/efirtc.c
@@ -74,7 +74,8 @@
*/
if ((error = efi_get_time(&tm)) != 0) {
if (bootverbose)
- device_printf(dev, "cannot read EFI realtime clock\n");
+ device_printf(dev, "cannot read EFI realtime clock, "
+ "error %d\n", error);
return (error);
}
device_set_desc(dev, "EFI Realtime Clock");
Index: head/sys/kern/subr_rtc.c
===================================================================
--- head/sys/kern/subr_rtc.c
+++ head/sys/kern/subr_rtc.c
@@ -138,6 +138,7 @@
{
struct timespec ts;
struct rtc_instance *rtc;
+ int error;
rtc = arg;
if (!(rtc->flags & CLOCKF_SETTIME_NO_TS)) {
@@ -150,7 +151,9 @@
ts.tv_sec = 0;
ts.tv_nsec = 0;
}
- CLOCK_SETTIME(rtc->clockdev, &ts);
+ error = CLOCK_SETTIME(rtc->clockdev, &ts);
+ if (error != 0 && bootverbose)
+ device_printf(rtc->clockdev, "CLOCK_SETTIME error %d\n", error);
}
static void
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Aug 24, 7:37 PM (21 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37202214
Default Alt Text
D16972.id47594.diff (1 KB)
Attached To
Mode
D16972: Catch exceptions during EFI RT calls on amd64.
Attached
Detach File
Event Timeline
Log In to Comment