[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 6/7] dh: Print hexadecimal data to stderr
[Thread Prev] | [Thread Next]
- Subject: [PATCH 6/7] dh: Print hexadecimal data to stderr
- From: Justus Winter <justus@xxxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Tue, 29 Mar 2016 13:07:03 +0200
- To: libssh@xxxxxxxxxx
- Cc: Justus Winter <justus@xxxxxxxxxxx>
* src/dh.c (ssh_print_hexa): Print to stderr.
Signed-off-by: Justus Winter <justus@xxxxxxxxxxx>
---
src/dh.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/dh.c b/src/dh.c
index 0c57d76..98607b9 100644
--- a/src/dh.c
+++ b/src/dh.c
@@ -1126,7 +1126,7 @@ void ssh_print_hexa(const char *descr, const unsigned char *what, size_t len) {
if (hexa == NULL) {
return;
}
- printf("%s: %s\n", descr, hexa);
+ fprintf(stderr, "%s: %s\n", descr, hexa);
free(hexa);
}
--
2.1.4
| [PATCH 1/5] options: Check if a port has been given | Justus Winter <justus@xxxxxxxxxxx> |
| [PATCH 1/7] options: Check if a port has been given | Justus Winter <justus@xxxxxxxxxxx> |