Bug #287 some printf's are missing arguments in innobase
Submitted: 14 Apr 2003 6:04 Modified: 12 Aug 2005 11:09
Reporter: [ name withheld ] Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: InnoDB storage engine Severity:S3 (Non-critical)
Version:3.23.55 OS:Other (OpenBSD 3.3)
Assigned to: CPU Architecture:Any

[14 Apr 2003 6:04] [ name withheld ]
Description:
Some arguments to printf statements in InnoDB are missing arguments. 

How to repeat:

Suggested fix:
--- innobase/log/log0recv.c.orig        Mon Apr 14 13:50:44 2003 
+++ innobase/log/log0recv.c     Mon Apr 14 13:52:56 2003 
@@ -1381,7 +1381,7 @@ recv_apply_log_recs_for_backup( 
                                                        &success); 
                        if (!success) { 
                                printf( 
-"InnoDB: Error: cannot open %lu'th data file %s\n", nth_file); 
+"InnoDB: Error: cannot open %lu'th data file %s\n", nth_file, data_files[nth_file]); 
 
                                exit(1); 
                        } 
@@ -1398,7 +1398,7 @@ recv_apply_log_recs_for_backup( 
                        if (!success) { 
                                printf( 
 "InnoDB: Error: cannot read page no %lu from %lu'th data file %s\n", 
-                               nth_page_in_file, nth_file); 
+                               nth_page_in_file, nth_file, data_files[nth_file]); 
 
                                exit(1); 
                        } 
@@ -1426,7 +1426,7 @@ recv_apply_log_recs_for_backup( 
                        if (!success) { 
                                printf( 
 "InnoDB: Error: cannot write page no %lu to %lu'th data file %s\n", 
-                               nth_page_in_file, nth_file); 
+                               nth_page_in_file, nth_file, data_files[nth_file]); 
 
                                exit(1); 
                        }
[14 Apr 2003 7:50] MySQL Verification Team
Fixed in 4.0.

Will not be fixed in 3.23.
[12 Aug 2005 11:09] Heikki Tuuri
Fixed in 4.0 and up.