All of lore.kernel.org
 help / color / mirror / Atom feed
* print output format of sensors command
@ 2005-05-19  6:25 James Olin Oden
  2005-05-19  6:25 ` Mark Studebaker
  0 siblings, 1 reply; 2+ messages in thread
From: James Olin Oden @ 2005-05-19  6:25 UTC (permalink / raw)
  To: lm-sensors

Hi All,

So I am in the process of working up a patch for the sensors command to 
print the features of the lm93 and correlate the alarm bit mask to each 
feature.  My quesiton is regarding desired format.  I like the do_print
functions format in that it includes the actuall pin name in the output
in parenthesis, but all the other print routines do not do this?  What is
preffered?  Can I do something like:

	$label: $val (pin = $pin, min = $min, max = $max)

Or would you prefer I just make calls to things like print_temp_info(), 
and don't bother printing the pin name?  BTW, here is example output
of what I get right now:

	mon1,VTT: 1.20 (in14)
	  in14_min: 1.13 (in14_min)
	  in14_max: 1.26 (in14_max)

Thanks...james

^ permalink raw reply	[flat|nested] 2+ messages in thread

* print output format of sensors command
  2005-05-19  6:25 print output format of sensors command James Olin Oden
@ 2005-05-19  6:25 ` Mark Studebaker
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Studebaker @ 2005-05-19  6:25 UTC (permalink / raw)
  To: lm-sensors

you should do it the way it's done elsewhere in chips.c because it gives the user control over the label,
as set in sensors.conf. If the user wants the pin name, or whatever, he can put it in sensors.conf as a part of the label.
The do_a_print() is only for chips that don't have their own print routine yet.
mds

James Olin Oden wrote:
> Hi All,
> 
> So I am in the process of working up a patch for the sensors command to 
> print the features of the lm93 and correlate the alarm bit mask to each 
> feature.  My quesiton is regarding desired format.  I like the do_print
> functions format in that it includes the actuall pin name in the output
> in parenthesis, but all the other print routines do not do this?  What is
> preffered?  Can I do something like:
> 
> 	$label: $val (pin = $pin, min = $min, max = $max)
> 
> Or would you prefer I just make calls to things like print_temp_info(), 
> and don't bother printing the pin name?  BTW, here is example output
> of what I get right now:
> 
> 	mon1,VTT: 1.20 (in14)
> 	  in14_min: 1.13 (in14_min)
> 	  in14_max: 1.26 (in14_max)
> 
> Thanks...james
> 
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-05-19  6:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-19  6:25 print output format of sensors command James Olin Oden
2005-05-19  6:25 ` Mark Studebaker

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.