From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH] simple fixes
Date: Wed, 09 May 2018 09:39:51 -0500 [thread overview]
Message-ID: <1ec82cc3-a5d4-6b31-557c-78f0852cfd6b@gmail.com> (raw)
In-Reply-To: <20180509143356.GA28193@amd>
[-- Attachment #1: Type: text/plain, Size: 2507 bytes --]
Hi Pavel,
On 05/09/2018 09:33 AM, Pavel Machek wrote:
> Fix typo in location-reporting-api.txt.
>
> AFAICT, at_cmt_notify() calls ofono_error even in case stuff is
> okay. Fix that.
>
> Move debug print to more useful place in setup_gobi().
>
> Explain "delivery report" parameter in send-sms.
These mostly look fine, but can you do me a favor and read HACKING,
'Submitting patches' section and break up this patch accordingly?
>
> diff --git a/doc/location-reporting-api.txt b/doc/location-reporting-api.txt
> index 21e346d4..ff0a35dc 100644
> --- a/doc/location-reporting-api.txt
> +++ b/doc/location-reporting-api.txt
> @@ -13,7 +13,7 @@ Methods dict GetProperties()
> filedescriptor Request()
>
> Asks to turn ON the NMEA stream and supplies the
> - gps device file descriptor. The external cliend should
> + gps device file descriptor. The external client should
> use the file descriptor to receive the NMEA data.
>
> Possible Errors: [service].Error.InProgress
> diff --git a/drivers/atmodem/sms.c b/drivers/atmodem/sms.c
> index 68b89862..217971e7 100644
> --- a/drivers/atmodem/sms.c
> +++ b/drivers/atmodem/sms.c
> @@ -440,6 +436,8 @@ static void at_cmt_notify(GAtResult *result, gpointer user_data)
> if (data->vendor != OFONO_VENDOR_SIMCOM)
> at_ack_delivery(sms);
>
> + return;
> +
> err:
> ofono_error("Unable to parse CMT notification");
> }
> diff --git a/plugins/udevng.c b/plugins/udevng.c
> index ff5d41af..a4b18488 100644
> --- a/plugins/udevng.c
> +++ b/plugins/udevng.c
> @@ -233,10 +233,11 @@ static gboolean setup_gobi(struct modem_info *modem)
> }
> }
>
> + DBG("qmi=%s net=%s mdm=%s gps=%s diag=%s", qmi, net, mdm, gps, diag);
> +
> if (qmi == NULL || mdm == NULL || net == NULL)
> return FALSE;
>
> - DBG("qmi=%s net=%s mdm=%s gps=%s diag=%s", qmi, net, mdm, gps, diag);
>
> ofono_modem_set_string(modem->modem, "Device", qmi);
> ofono_modem_set_string(modem->modem, "Modem", mdm);
> diff --git a/test/send-sms b/test/send-sms
> index 98808aaf..cabe0652 100755
> --- a/test/send-sms
> +++ b/test/send-sms
> @@ -6,6 +6,7 @@ import dbus
> if len(sys.argv) < 4:
> print("Usage: %s [modem] <to> <message> <delivery report>" %\
> (sys.argv[0]))
> + print(" where delivery report is 0|1")
Something is funny with indentation here.
> sys.exit(1)
>
> bus = dbus.SystemBus()
>
Regards,
-Denis
prev parent reply other threads:[~2018-05-09 14:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-09 14:33 [PATCH] simple fixes Pavel Machek
2018-05-09 14:39 ` Denis Kenzior [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=1ec82cc3-a5d4-6b31-557c-78f0852cfd6b@gmail.com \
--to=denkenz@gmail.com \
--cc=ofono@ofono.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.