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


From: Daniele Forsi
Subject: [SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-540-gd27fc29
Date: Sat, 04 Jan 2014 09:01:59 +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  d27fc29fe2406cfedf2c4f51e0e6b5ac7cbbd018 (commit)
      from  b2281d5a43f93afb52fce336e8dd339d24d3e5cf (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=d27fc29fe2406cfedf2c4f51e0e6b5ac7cbbd018


commit d27fc29fe2406cfedf2c4f51e0e6b5ac7cbbd018
Author: Daniele Forsi <address@hidden>
Date:   Sat Jan 4 09:52:20 2014 +0100

    Fix debug messages
    
    Use %d as printf specifier because members of message[] are unsigned
    chars.

diff --git a/common/phones/nk6510.c b/common/phones/nk6510.c
index 3ad0dbe..51b0687 100644
--- a/common/phones/nk6510.c
+++ b/common/phones/nk6510.c
@@ -4363,7 +4363,7 @@ static gn_error NK6510_IncomingNetwork(int messagetype, 
unsigned char *message,
                */
                break;
        case 0x0c: /* RF Level */
-               dprintf("RF level: %f\n", message[8]);
+               dprintf("RF level: %d\n", message[8]);
                if (data->rf_level) {
                        *(data->rf_unit) = GN_RF_Percentage;
                        *(data->rf_level) = message[8];
@@ -4378,7 +4378,7 @@ static gn_error NK6510_IncomingNetwork(int messagetype, 
unsigned char *message,
                  01 56 00 1E 08 66
                  01 56 00 1E 0A 66
                */
-               dprintf("RF level: %f\n", message[4]);
+               dprintf("RF level: %d\n", message[4]);
                if (data->rf_level) {
                        *(data->rf_unit) = GN_RF_Percentage;
                        *(data->rf_level) = message[4];

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

Summary of changes:
 common/phones/nk6510.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]