Change in osmo-ccid-firmware[master]: add talloc_log_fn() to print talloc errors

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Tue Nov 12 11:20:52 UTC 2019


laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/16037 )


Change subject: add talloc_log_fn() to print talloc errors
......................................................................

add talloc_log_fn() to print talloc errors

Change-Id: I7c7dac94eb813d963fc0312d808bd0674243f9e2
---
M sysmoOCTSIM/main.c
1 file changed, 6 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ccid-firmware refs/changes/37/16037/1

diff --git a/sysmoOCTSIM/main.c b/sysmoOCTSIM/main.c
index 15e2004..58c0278 100644
--- a/sysmoOCTSIM/main.c
+++ b/sysmoOCTSIM/main.c
@@ -1065,6 +1065,11 @@
 		strcat(out, "BACKUP ");
 }
 
+static void talloc_log_stdout(const char *message)
+{
+	printf("%s", message);
+}
+
 int main(void)
 {
 	char sernr_buf[16*2+1];
@@ -1101,6 +1106,7 @@
 	printf("Chip ID: %s\r\n", sernr_buf);
 	printf("Reset cause: %s\r\n", rstcause_buf);
 
+	talloc_set_log_fn(talloc_log_stdout);
 	talloc_enable_null_tracking();
 	g_tall_ctx = talloc_named_const(NULL, 0, "global");
 	printf("g_tall_ctx=%p\r\n", g_tall_ctx);

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/16037
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ccid-firmware
Gerrit-Branch: master
Gerrit-Change-Id: I7c7dac94eb813d963fc0312d808bd0674243f9e2
Gerrit-Change-Number: 16037
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20191112/21f4de36/attachment.htm>


More information about the gerrit-log mailing list