All of lore.kernel.org
 help / color / mirror / Atom feed
From: han.lu@intel.com
To: tiwai@suse.de, liam.r.girdwood@intel.com,
	bernard.gautier@intel.com, alsa-devel@alsa-project.org
Cc: "Lu, Han" <han.lu@intel.com>
Subject: [PATCH V3 2/4] BAT: Use colon instead of comma for separation
Date: Fri, 16 Oct 2015 16:12:04 +0800	[thread overview]
Message-ID: <f4125a13a9abb3f702b3cd6cb947826a90032ade.1444982584.git.han.lu@intel.com> (raw)
In-Reply-To: <cover.1444982584.git.han.lu@intel.com>
In-Reply-To: <cover.1444982584.git.han.lu@intel.com>

From: "Lu, Han" <han.lu@intel.com>

Use colon instead of comma to separate frequency parameters, for
in several locale comma may be handled as decimal point.

Signed-off-by: Lu, Han <han.lu@intel.com>

diff --git a/bat/bat.c b/bat/bat.c
index 4320e22..2320984 100644
--- a/bat/bat.c
+++ b/bat/bat.c
@@ -74,7 +74,7 @@ static void get_sine_frequencies(struct bat *bat, char *freq)
 {
 	char *tmp1;
 
-	tmp1 = strchr(freq, ',');
+	tmp1 = strchr(freq, ':');
 	if (tmp1 == NULL) {
 		bat->target_freq[1] = bat->target_freq[0] = atof(optarg);
 	} else {
-- 
1.9.1

  parent reply	other threads:[~2015-10-16  8:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-16  8:12 [PATCH V3 0/4] BAT: some fixes han.lu
2015-10-16  8:12 ` [PATCH V3 1/4] BAT: Merge message strings han.lu
2015-10-16  8:12 ` han.lu [this message]
2015-10-16  8:12 ` [PATCH V3 3/4] BAT: Adjust parameters and strings han.lu
2015-10-16  8:44   ` Takashi Iwai
2015-10-16  8:57     ` Lu, Han
2015-10-16  8:12 ` [PATCH V3 4/4] BAT: Use dynamic temp file han.lu

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=f4125a13a9abb3f702b3cd6cb947826a90032ade.1444982584.git.han.lu@intel.com \
    --to=han.lu@intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=bernard.gautier@intel.com \
    --cc=liam.r.girdwood@intel.com \
    --cc=tiwai@suse.de \
    /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.