[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-45
From: |
Daniele Forsi |
Subject: |
[SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-45-gd2bbdcb |
Date: |
Sun, 15 Aug 2010 13:12: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 d2bbdcb6ea0a7806b96de2be275e273208315e0c (commit)
from 4e4577591b158a38bcad0305dbb4d52b56744dfd (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=d2bbdcb6ea0a7806b96de2be275e273208315e0c
commit d2bbdcb6ea0a7806b96de2be275e273208315e0c
Author: Daniele Forsi <address@hidden>
Date: Sun Aug 15 15:09:59 2010 +0200
Replace dprintf() with gn_log_xdebug() for consistency
This way all debug output generated by xgnokii is controlled from
config files with xdebug=on.
diff --git a/xgnokii/ChangeLog b/xgnokii/ChangeLog
index 3a837d3..4e42746 100644
--- a/xgnokii/ChangeLog
+++ b/xgnokii/ChangeLog
@@ -1,3 +1,6 @@
+* Sun 15 Aug 2010 Daniele Forsi
+- Replace dprintf() with gn_log_xdebug()
+
* Sun 25 Jul 2010 Daniele Forsi
- Replace GtkText with GtkTextView in SMS windows to gain UTF-8 support
diff --git a/xgnokii/xgnokii_lowlevel.c b/xgnokii/xgnokii_lowlevel.c
index 1510e43..88ad36d 100644
--- a/xgnokii/xgnokii_lowlevel.c
+++ b/xgnokii/xgnokii_lowlevel.c
@@ -264,8 +264,8 @@ void GUI_InitPhoneMonitor(void)
static gint compare_folder_and_number(const gn_sms *a, const gn_sms *b)
{
- dprintf("memory type a: %i memory type b: %i\n", a->memory_type,
b->memory_type);
- dprintf("message number a: %i message number b: %i\n", a->number,
b->number);
+ gn_log_xdebug("memory type a: %i memory type b: %i\n", a->memory_type,
b->memory_type);
+ gn_log_xdebug("message number a: %i message number b: %i\n", a->number,
b->number);
if (a->memory_type == b->memory_type)
if (a->number == b->number)
return 0;
@@ -291,8 +291,8 @@ static void RefreshSMS(const gint number)
gn_data_clear(&gdat);
- dprintf("RefreshSMS: changed: %i\n", SMSStatus.changed);
- dprintf("RefreshSMS: unread: %i, total: %i\n", SMSStatus.unread,
+ gn_log_xdebug("RefreshSMS: changed: %i\n", SMSStatus.changed);
+ gn_log_xdebug("RefreshSMS: unread: %i, total: %i\n", SMSStatus.unread,
SMSStatus.number);
for (i = 0; i < SMSStatus.folders_count; i++) {
dummy = 0;
@@ -300,7 +300,7 @@ static void RefreshSMS(const gint number)
if ((MessagesList[j][i].status == GN_SMS_FLD_Changed) ||
(MessagesList[j][i].status == GN_SMS_FLD_NotRead) ||
(MessagesList[j][i].status == GN_SMS_FLD_New))
- dprintf("RefreshSMS: change #%i in folder %i at
location %i!\n",
+ gn_log_xdebug("RefreshSMS: change #%i in folder
%i at location %i!\n",
++dummy, i,
MessagesList[j][i].location);
}
}
@@ -310,7 +310,7 @@ static void RefreshSMS(const gint number)
for (j = 0; j < FolderStats[i].used; j++) {
if (MessagesList[j][i].status ==
GN_SMS_FLD_Deleted ||
MessagesList[j][i].status ==
GN_SMS_FLD_Changed) {
- dprintf("We got a deleted message here
to handle!\n");
+ gn_log_xdebug("We got a deleted message
here to handle!\n");
pthread_mutex_lock(&smsMutex);
msg = g_malloc0(sizeof(gn_sms));
@@ -340,10 +340,10 @@ static void RefreshSMS(const gint number)
gdat.raw_sms = raw;
gdat.sms->number =
MessagesList[j][i].location;
- gdat.sms->memory_type =(gn_memory_type)
i + 12 ;
- dprintf("#: %i, mt: %i\n",
gdat.sms->number, gdat.sms->memory_type);
+ gdat.sms->memory_type =(gn_memory_type)
i + 12;
+ gn_log_xdebug("#: %i, mt: %i\n",
gdat.sms->number, gdat.sms->memory_type);
if ((error =
gn_sms_get_no_validate(&gdat, statemachine)) == GN_ERR_NONE) {
- dprintf("Found valid SMS ...\n
%s\n",
+ gn_log_xdebug("Found valid SMS
...\n %s\n",
msg->user_data[0].u.text);
pthread_mutex_lock(&smsMutex);
phoneMonitor.sms.messages =
@@ -382,7 +382,7 @@ static void RefreshSMS(const gint number)
gdat.sms = msg;
if ((error = gn_sms_get(&gdat, statemachine)) ==
GN_ERR_NONE) {
- dprintf("Found valid SMS ...\n");
+ gn_log_xdebug("Found valid SMS ...\n");
pthread_mutex_lock(&smsMutex);
phoneMonitor.sms.messages =
g_slist_append(phoneMonitor.sms.messages,
msg);
@@ -508,7 +508,7 @@ static gint A_GetMemoryLocationAll(gpointer data)
}
}
if ((error == GN_ERR_NONE) && (entry.empty == false)) read++;
- dprintf("Name: %s\n", entry.name);
+ gn_log_xdebug("Name: %s\n", entry.name);
error = mla->InsertEntry(&entry);
/* FIXME: It only works this way at the moment */
/* if (error != GN_ERR_NONE)
@@ -1391,7 +1391,7 @@ void *GUI_Connect(void *a)
}
if ((gn_sms_get_folder_changes(&gdat, statemachine,
(phoneMonitor.supported & PM_FOLDERS))) == GN_ERR_NONE) {
- dprintf("old UR: %i, new UR: %i, old total: %i, new
total: %i\n",
+ gn_log_xdebug("old UR: %i, new UR: %i, old total: %i,
new total: %i\n",
phoneMonitor.sms.unRead,
gdat.sms_status->unread,
phoneMonitor.sms.number,
gdat.sms_status->number);
phoneMonitor.sms.changed += gdat.sms_status->changed;
diff --git a/xgnokii/xgnokii_sms.c b/xgnokii/xgnokii_sms.c
index 2844f3c..aa0d23e 100644
--- a/xgnokii/xgnokii_sms.c
+++ b/xgnokii/xgnokii_sms.c
@@ -391,7 +391,7 @@ static inline void RefreshFolder(void)
{
GtkTextBuffer *buffer;
- dprintf("RefreshFolder\n\n\n");
+ gn_log_xdebug("RefreshFolder\n\n\n");
/* Clear the SMS text window */
buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(SMS.smsText));
@@ -433,7 +433,7 @@ static void ClickEntry(GtkWidget * clist,
/* Mark SMS as read */
if (gtk_clist_get_text(GTK_CLIST(clist), row, 0, &(text1))) {
- dprintf("*text1: %s *text2: %s \n", text1, text2);
+ gn_log_xdebug("*text1: %s *text2: %s \n", text1, text2);
/* strcpm(text1,text2) = 0 if text1 is the same string as text2
*/
if (!(strcmp(text1, text2) )) {
diff --git a/xgnokii/xgnokii_speed.c b/xgnokii/xgnokii_speed.c
index 7f6e0d3..1bfd0cb 100644
--- a/xgnokii/xgnokii_speed.c
+++ b/xgnokii/xgnokii_speed.c
@@ -249,7 +249,7 @@ static void SaveSpeedDial(void)
if (speedDialInitialized) {
for (i = 1; i < 10; i++) {
if ((d = (D_SpeedDial *)
gtk_clist_get_row_data(GTK_CLIST(clist), i - 1))) {
- dprintf("locaction: %i\n", d->entry.location);
+ gn_log_xdebug("location: %i\n",
d->entry.location);
if (d->entry.location == 0)
continue;
if ((e = (PhoneEvent *)
g_malloc(sizeof(PhoneEvent))) == NULL) {
-----------------------------------------------------------------------
Summary of changes:
xgnokii/ChangeLog | 3 +++
xgnokii/xgnokii_lowlevel.c | 24 ++++++++++++------------
xgnokii/xgnokii_sms.c | 4 ++--
xgnokii/xgnokii_speed.c | 2 +-
4 files changed, 18 insertions(+), 15 deletions(-)
hooks/post-receive
--
libgnokii and core programs
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-45-gd2bbdcb,
Daniele Forsi <=