From 7bd9c1f9a68a024958040fe5b77dacc73bb6c5ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= Date: Fri, 2 Dec 2011 14:39:53 +0100 Subject: Mend the non-SMP emulator Commit 8781932b3b8769b6f208ac7c00471122ec7dd055 broke erlang:system_info(system_version) in the non-SMP emulator so that it would typically dump core. "rq:%d" was removed from the format string for erts_printf(), but the corresponding argument in the argument list was not removed, which ultimately caused "kernel-poll:%s" to be passed an integer (typically 0). --- erts/emulator/beam/erl_bif_info.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'erts/emulator/beam') diff --git a/erts/emulator/beam/erl_bif_info.c b/erts/emulator/beam/erl_bif_info.c index db04fe5a54..cb918fd34c 100644 --- a/erts/emulator/beam/erl_bif_info.c +++ b/erts/emulator/beam/erl_bif_info.c @@ -301,8 +301,6 @@ erts_print_system_version(int to, void *arg, Process *c_p) return erts_print(to, arg, erts_system_version #ifdef ERTS_SMP , total, online -#else - , 1 #endif #ifdef USE_THREADS , erts_async_max_threads -- cgit v1.2.3