aboutsummaryrefslogtreecommitdiff
path: root/slof
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2017-06-08 14:23:29 +0200
committerAlexey Kardashevskiy <aik@ozlabs.ru>2017-06-15 16:11:32 +1000
commite8f7543db0d83e06b227e12f33492109aea1403c (patch)
treed2b29edf5124fd5c0cb0528089de6cc40d2f86d9 /slof
parent8c41240bc4e9f4e3a0b331af18d7305caae024b7 (diff)
downloadSLOF-e8f7543db0d83e06b227e12f33492109aea1403c.zip
SLOF-e8f7543db0d83e06b227e12f33492109aea1403c.tar.gz
SLOF-e8f7543db0d83e06b227e12f33492109aea1403c.tar.bz2
paflof: Print stack warning to stderr, not stdout
Now that stdout is routed through the TYPE Forth word, we should avoid using stdout in critical sections in the engine() function. So print the stack warning via stderr now instead. Signed-off-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Diffstat (limited to 'slof')
-rw-r--r--slof/paflof.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/slof/paflof.c b/slof/paflof.c
index 5c4f4e1..50b4adf 100644
--- a/slof/paflof.c
+++ b/slof/paflof.c
@@ -90,7 +90,7 @@ long engine(int mode, long param_1, long param_2)
}
if ((char *)&ip < the_system_stack && !did_stackwarning) {
- puts("ERROR: stack overflow in engine()!");
+ fprintf(stderr, "\nERROR: stack overflow in engine()!\n");
did_stackwarning = 1;
}