[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: --writephonebook, --deletephonebook
From: |
Pawel Kot |
Subject: |
Re: --writephonebook, --deletephonebook |
Date: |
Wed, 11 Aug 2004 10:34:38 +0200 (CEST) |
On Wed, 11 Aug 2004, Reiner Steib wrote:
> A cosmetic issue:
>
> ,----
> | $ gnokii --deletephonebook SM 1 end
> | [...]
> | Phonebook entry removed: memory type: SIM card, loc: 125
> | Phonebook entry removal FAILED (The given memory location is invalid.):\
> | memory type: SIM card, loc: 126
> `----
>
> For "1 end" it is not a failure that location 126 fails, but the
> expected behavior.
At first sight I thought we need more logic in deletephonebook(). But is
seems it will be easy fixable. Try the following patch:
--- gnokii/gnokii.c~ 2004-08-11 09:51:00.000000000 +0200
+++ gnokii/gnokii.c 2004-08-11 09:51:00.000000000 +0200
@@ -3581,10 +3581,11 @@
gn_memory_type2str(entry.memory_type),
entry.location);
break;
default:
- fprintf (stderr, _("Phonebook entry removal FAILED
(%s): memory type: %s, loc: %d\n"),
- gn_error_print(error),
gn_memory_type2str(entry.memory_type), entry.location);
if (last_location == INT_MAX)
last_location = 0;
+ else
+ fprintf (stderr, _("Phonebook entry removal
FAILED (%s): memory type: %s, loc: %d\n"),
+ gn_error_print(error),
gn_memory_type2str(entry.memory_type), entry.location);
break;
}
}
pkot
--
mailto:address@hidden
http://www.gnokii.org/
- --writephonebook options, Reiner Steib, 2004/08/06
- Phone.... which one.... :), Hein-Pieter van Braam, 2004/08/08
- Re: --writephonebook options, Pawel Kot, 2004/08/09
- --writephonebook, --deletephonebook (was: --writephonebook options), Reiner Steib, 2004/08/10
- Re: --writephonebook, --deletephonebook (was: --writephonebook options), Pawel Kot, 2004/08/10
- Re: --writephonebook, --deletephonebook (was: --writephonebook options), Pawel Kot, 2004/08/10
- Re: --writephonebook, --deletephonebook, Reiner Steib, 2004/08/10
- Re: --writephonebook, --deletephonebook, Pawel Kot, 2004/08/10
- Re: --writephonebook, --deletephonebook, Reiner Steib, 2004/08/11
- Re: --writephonebook, --deletephonebook,
Pawel Kot <=
- Re: --writephonebook, --deletephonebook, Reiner Steib, 2004/08/11
- Re: --writephonebook, --deletephonebook, Reiner Steib, 2004/08/26
- Re: --writephonebook, --deletephonebook, Pawel Kot, 2004/08/28