All of lore.kernel.org
 help / color / mirror / Atom feed
From: mds4@verizon.net (Mark Studebaker)
To: lm-sensors@vger.kernel.org
Subject: print output format of sensors command
Date: Thu, 19 May 2005 06:25:13 +0000	[thread overview]
Message-ID: <413E4306.4060606@verizon.net> (raw)
In-Reply-To: <Pine.LNX.4.58.0409071552340.23048@malachi.lee.k12.nc.us>

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
> 
> 

      reply	other threads:[~2005-05-19  6:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-19  6:25 print output format of sensors command James Olin Oden
2005-05-19  6:25 ` Mark Studebaker [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=413E4306.4060606@verizon.net \
    --to=mds4@verizon.net \
    --cc=lm-sensors@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.