lkml.org 
[lkml]   [1996]   [Apr]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: Please change /proc/rtc (PATCH)
On 22 Apr 96 at 13:21, Michael J. Micek wrote:

>
> Here's a patch for tested code that returns in /proc/rtc:
>
> date : 1996-04-22
> time : 20:03:44
> dst_enable : no
> bcd : yes
> 24hr : yes
> square_wave : no
> battery_ok : yes
> update_int : no
> periodic_int : no
> per_int_freq : 1024
> alarm_int : no
> alrm_int_mask : 00:00:00
>
> This seems pretty logical to me.

Yes, but you shouldn't use tabs. Maybe you should use "%-15s: %s" to
output pairs of (name, value).

>
>
> --- rtc.c.old Fri Apr 19 17:37:52 1996
> +++ rtc.c Mon Apr 22 12:47:22 1996
[...]
> + p += sprintf(p, "date\t\t: %04d-%02d-%02d\n",
[...]

Ulrich


\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.043 / U:0.160 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site