All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] test/test-modem: display more properties (Name, Online, Lockdown...)
@ 2011-03-08 15:08 Bertrand Aygon
  2011-03-08 19:33 ` Denis Kenzior
  0 siblings, 1 reply; 2+ messages in thread
From: Bertrand Aygon @ 2011-03-08 15:08 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1940 bytes --]

---
 test/test-modem |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/test/test-modem b/test/test-modem
index 5859ae3..c1eeedf 100755
--- a/test/test-modem
+++ b/test/test-modem
@@ -24,6 +24,9 @@ if __name__ == "__main__":
 
 	properties = modem.GetProperties()
 
+	if properties.has_key('Name'):
+		print "Name: %s" % (properties['Name'])
+		
 	if properties.has_key('Manufacturer'):
 		print "Manufacturer: %s" % (properties['Manufacturer'])
 
@@ -36,5 +39,27 @@ if __name__ == "__main__":
 	if properties.has_key('Serial'):
 		print "Serial: %s" % (properties['Serial'])
 
+	if properties.has_key('Powered'):
+		print "Powered: %s" % (properties['Powered'])
+
+	if properties.has_key('Online'):
+		print "Online: %s" % (properties['Online'])
+
+	if properties.has_key('Lockdown'):
+		print "Lockdown: %s" % (properties['Lockdown'])
+
+	if properties.has_key('Emergency'):
+		print "Emergency: %s" % (properties['Emergency'])
+
+	if properties.has_key('Features'):
+		print "Features:"
+		for feature in properties["Features"]:
+			print "    [ %s ]" % (feature)
+
+	if properties.has_key('Interfaces'):
+		print "Interfaces:"
+		for interface in properties["Interfaces"]:
+			print "    [ %s ]" % (interface)
+
 	mainloop = gobject.MainLoop()
 	mainloop.run()
-- 
1.7.1

---------------------------------------------------------------------
Intel Corporation SAS (French simplified joint stock company)
Registered headquarters: "Les Montalets"- 2, rue de Paris, 
92196 Meudon Cedex, France
Registration Number:  302 456 199 R.C.S. NANTERRE
Capital: 4,572,000 Euros

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] test/test-modem: display more properties (Name, Online, Lockdown...)
  2011-03-08 15:08 [PATCH] test/test-modem: display more properties (Name, Online, Lockdown...) Bertrand Aygon
@ 2011-03-08 19:33 ` Denis Kenzior
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2011-03-08 19:33 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 894 bytes --]

Hi Bertrand,

On 03/08/2011 09:08 AM, Bertrand Aygon wrote:
> ---
>  test/test-modem |   25 +++++++++++++++++++++++++
>  1 files changed, 25 insertions(+), 0 deletions(-)
> 

When I applied this patch I received this:

Applying: test/test-modem: display more properties (Name, Online,
Lockdown...)
/home/denkenz/ofono-master/.git/rebase-apply/patch:15: trailing whitespace.
		
fatal: 1 line adds whitespace errors.
Patch failed at 0001 test/test-modem: display more properties (Name,
Online, Lockdown...)
When you have resolved this problem run "git am --resolved".
If you would prefer to skip this patch, instead run "git am --skip".
To restore the original branch and stop patching run "git am --abort".

Please configure your editor to remove indentation for empty lines.  I
fixed it for you and applied this patch (with a modified commit message).

Thanks,
-Denis

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-03-08 19:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-08 15:08 [PATCH] test/test-modem: display more properties (Name, Online, Lockdown...) Bertrand Aygon
2011-03-08 19:33 ` Denis Kenzior

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.