Thread (8 messages) 8 messages, 2 authors, 2009-02-16

[PATCH 2/6] hcitool: fix error message

flat view
STALE6446d

From: Gustavo F. Padovan <hidden>
Date: 2009-02-15 19:47:22
Subsystem: the rest · Maintainer: Linus Torvalds

str only will be NULL if malloc couldn't alloc memory
---
 tools/hcitool.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tools/hcitool.c b/tools/hcitool.c
index 3ba9234..4793c46 100644
--- a/tools/hcitool.c
+++ b/tools/hcitool.c
@@ -1861,7 +1861,7 @@ static void cmd_lp(int dev_id, int argc, char **argv)
 			printf("Link policy settings: %s\n", str);
 			bt_free(str);
 		} else {
-			fprintf(stderr, "Invalig settings\n");
+			fprintf(stderr, "Can't allocate memory\n");
 			exit(1);
 		}
 	} else {
-- 
1.6.0.6
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help