Bug #58999 | __FILE__ macros expanded to full path instead of relative in CMake builds | ||
---|---|---|---|
Submitted: | 17 Dec 2010 13:41 | Modified: | 15 Oct 2012 13:30 |
Reporter: | Alexey Stroganov | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Compiling | Severity: | S3 (Non-critical) |
Version: | 5.5.5-5.5.8 | OS: | Any |
Assigned to: | Jimmy Yang | CPU Architecture: | Any |
[17 Dec 2010 13:41]
Alexey Stroganov
[17 Jan 2011 13:32]
Tor Didriksen
*if* we decide that we want to output only the basename of paths, I suggest something like this (in selected places) === modified file 'sql/sql_class.cc' --- sql/sql_class.cc 2010-12-17 08:56:43 +0000 +++ sql/sql_class.cc 2011-01-17 13:26:20 +0000 @@ -272,7 +272,8 @@ thd= current_thd; const char *old_info= thd->proc_info; - DBUG_PRINT("proc_info", ("%s:%d %s", calling_file, calling_line, + const char *basename= calling_file ? base_name(calling_file) : NULL; + DBUG_PRINT("proc_info", ("%s:%d %s", basename, calling_line, (info != NULL) ? info : "(null)")); #if defined(ENABLED_PROFILING) thd->profiling.status_change(info, calling_function, calling_file, calling_line);
[18 Jan 2011 15:17]
Tor Didriksen
http://bugs.mysql.com/bug.php?id=59273
[1 Feb 2011 9:42]
Tor Didriksen
Re-assigning to innodb team, to fix innodb related output.
[15 Oct 2012 13:30]
Erlend Dahl
Fixed in 5.6.2