From 76bf5ef75a1b5579333c76256e4cf93696a8c61b Mon Sep 17 00:00:00 2001 From: Phil Hord Date: Mon, 25 Nov 2013 16:13:55 -0500 Subject: [PATCH] Datalog: show traced data as signed ints, not unsigned. --- simulator/data_recorder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simulator/data_recorder.c b/simulator/data_recorder.c index 41475f8..44109cd 100644 --- a/simulator/data_recorder.c +++ b/simulator/data_recorder.c @@ -63,7 +63,7 @@ static void emit_log_data(void) { // Naive format: each line contains all values, beginning with the time fprintf(file, "%lu", prev_t/1000); // microseconds for (int i = 0; i < pin_count; i++) - fprintf(file, " %u", values[i]); + fprintf(file, " %d", values[i]); fprintf(file, "\n"); fflush(file); }