From 32978fdb95967e705c661f4c69fd227ffa03b455 Mon Sep 17 00:00:00 2001 From: an7s <an7s@git.zephyr-software.com> Date: Tue, 9 May 2017 16:03:52 +0000 Subject: [PATCH] better output --- datashadow/datashadow_callbacks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/datashadow/datashadow_callbacks.c b/datashadow/datashadow_callbacks.c index 5c64ca1..09e2492 100644 --- a/datashadow/datashadow_callbacks.c +++ b/datashadow/datashadow_callbacks.c @@ -66,7 +66,7 @@ void fptr_shadow_check_64(int p_shadowIndex, int p_policy, void **p_shadow) switch (p_policy) { case SHADOW_CONTINUE: #ifdef DEBUG - my_strcpy(msg, "Warning: overwrite of function pointer detected -- restoring saved value: shadow: 0x"); + my_strcpy(msg, "Warning: overwrite of critical data detected -- restoring saved value: shadow: 0x"); itox(*p_shadow, &msg[strlen(msg)]); my_strcpy(&msg[strlen(msg)], " \n"); @@ -81,7 +81,7 @@ void fptr_shadow_check_64(int p_shadowIndex, int p_policy, void **p_shadow) itox(*p_shadow, &msg[strlen(msg)]); my_strcpy(&msg[strlen(msg)], " shadow idx: 0x"); itox(p_shadowIndex, &msg[strlen(msg)]); - my_strcpy(&msg[strlen(msg)], " : Warning: overwrite of function pointer or critical detected -- induce segfault\n"); + my_strcpy(&msg[strlen(msg)], " : Warning: overwrite of critical data detected -- induce segfault\n"); write(2, msg, strlen(msg)); my_strcpy(0,""); // induce crash } -- GitLab