Messages in this thread | | | From | "Ulrich Windl" <> | Date | Tue, 23 Apr 1996 09:03:02 +0200 | Subject | Re: 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
| |