~mysql/mysql-server/5.7

« back to all changes in this revision

Viewing changes to storage/innobase/srv/srv0start.cc

  • Committer: Annamalai Gurusami
  • Date: 2014-03-04 03:43:36 UTC
  • Revision ID: annamalai.gurusami@oracle.com-20140304034336-3rlrk9g73qbd7wbc
Bug #18320915 PROVIDE C++ OSTREAM APPROACH FOR ERROR LOGGING - AVOID
PRINTF FORMAT SPECIFIERS

Problem:

Specifying the printf format specifiers have become cumbersome.

Solution:

Use the C++ streams mechanism to avoid using printf format specifiers.  I have
given one example were the log message is written without making use of the
LSN_PF format specifier.  

rb#4684 approved by Vasil

Show diffs side-by-side

added added

removed removed

Lines of Context:
2372
2372
        }
2373
2373
 
2374
2374
        if (srv_print_verbose_log) {
2375
 
                ib_logf(IB_LOG_LEVEL_INFO,
2376
 
                        "%s started; log sequence number " LSN_PF "",
2377
 
                        INNODB_VERSION_STR, srv_start_lsn);
 
2375
                ib::info() << INNODB_VERSION_STR
 
2376
                        << " started; log sequence number "
 
2377
                        << srv_start_lsn;
2378
2378
        }
2379
2379
 
2380
2380
        if (srv_force_recovery > 0) {