From 095851dbb22a53e082c2a35c01744ffe94515ad8 Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Fri, 23 Jul 2004 15:52:28 -0400 Subject: [PATCH] add a trace mechanism to trace sql stuff base/mysql.hh: Trace sql queries base/traceflags.py: Add a trace flag to trace sql queries --HG-- extra : convert_revision : dc25abb474db7334529b791a7aa90f8178ea59ea --- base/mysql.hh | 1 + base/traceflags.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/base/mysql.hh b/base/mysql.hh index 89bec73d0..23edb878c 100644 --- a/base/mysql.hh +++ b/base/mysql.hh @@ -180,6 +180,7 @@ class Connection bool query(const std::string &sql) { + DPRINTF(SQL, "Sending SQL query to server:\n%s", sql); error.clear(); if (mysql_real_query(&mysql, sql.c_str(), sql.size())) error.set(mysql_error(&mysql)); diff --git a/base/traceflags.py b/base/traceflags.py index e073f96c1..4be61d7ee 100644 --- a/base/traceflags.py +++ b/base/traceflags.py @@ -121,7 +121,8 @@ baseFlags = [ 'IdeDisk', 'Tsunami', 'Uart', - 'Split' + 'Split', + 'SQL' ] # -- 2.30.2