pmaports/luna/luna-sysmgr/compile.patch
Alex Roth 196d555092 Merge Luna work into master (#945)
Contains everything from #940, except on top of master now.
Also added a postmarketos-ui-luna package to be a meta-
package for all of the Luna work.

Every component included here builds & runs, but isn't
functional without a handful more packages.
2017-11-29 23:29:26 +00:00

27 lines
687 B
Diff

diff --git a/Src/Main.cpp b/Src/Main.cpp
index 3ac9027..bf2f895 100644
--- a/Src/Main.cpp
+++ b/Src/Main.cpp
@@ -75,14 +75,6 @@
*/
-//#define PRINT_MALLOC_STATS
-#ifdef __cplusplus
-extern "C" {
-#endif
-extern void malloc_stats(void);
-#ifdef __cplusplus
-};
-#endif
static gchar* s_uiStr = NULL;
static gchar* s_appToLaunchStr = NULL;
@@ -336,7 +328,6 @@ static gboolean mallocStatsCb(gpointer data)
fflush(stderr);
fprintf(stderr, "\nMALLOC STATS FOR PROCESS: \"%s\" (PID: %d) AT [%ld.%ld] %s", process_name, my_pid, ts.tv_sec, ts.tv_nsec, ctime_r(&cur_time, buf));
fflush(stderr);
- malloc_stats();
fprintf(stderr, "\n\n");
fflush(stderr);
fsync(STDERR_FILENO);