gnokii-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-39


From: Daniele Forsi
Subject: [SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-39-g2b28ec3
Date: Sun, 25 Jul 2010 16:36:04 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "libgnokii and core programs".

The branch, master has been updated
       via  2b28ec3668eb00bdbb1bffeea5cb553baaebc80e (commit)
      from  aa1ac8009501f04ecafc10b8d20937046e30fbd3 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/gnokii.git/commit/?id=2b28ec3668eb00bdbb1bffeea5cb553baaebc80e


commit 2b28ec3668eb00bdbb1bffeea5cb553baaebc80e
Author: Daniele Forsi <address@hidden>
Date:   Sun Jul 25 18:35:37 2010 +0200

    Be more verbose in debug messages

diff --git a/common/gsm-sms.c b/common/gsm-sms.c
index ee23b57..bb7d40a 100644
--- a/common/gsm-sms.c
+++ b/common/gsm-sms.c
@@ -1635,7 +1635,7 @@ GNOKII_API gn_error gn_sms_send(gn_data *data, struct 
gn_statemachine *state)
 
        sms_dump_raw(data->raw_sms);
        if (data->raw_sms->user_data_length > MAX_SMS_PART) {
-               dprintf("SMS is too long? %d\n", 
data->raw_sms->user_data_length);
+               dprintf("SMS is %d octects long but we can only send %d octects 
in a single SMS\n", data->raw_sms->user_data_length, MAX_SMS_PART);
                error = sms_send_long(data, state);
                goto cleanup;
        }
@@ -1711,10 +1711,10 @@ static gn_error sms_send_long(gn_data *data, struct 
gn_statemachine *state)
 
        /* We need to attach user data header to each part */
        max_sms_len -= (data->sms->udh.length + 1);
-       dprintf("max_sms_len: %d\n", max_sms_len);
        /* Count number of SMS to be sent */
        count = (total + max_sms_len - 1) / max_sms_len;
        dprintf("Will need %d sms-es\n", count);
+       dprintf("SMS is %d octects long but we can only send %d octects in a 
single SMS after adding %d octects for udh\n", total, max_sms_len, 
data->sms->udh.length + 1);
 
        data->sms->parts = count;
        data->sms->reference = calloc(count, sizeof(unsigned int));

-----------------------------------------------------------------------

Summary of changes:
 common/gsm-sms.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
libgnokii and core programs



reply via email to

[Prev in Thread] Current Thread [Next in Thread]