Changeset 80b6d36 in git


Ignore:
Timestamp:
Dec 15, 2014, 6:41:24 PM (9 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', 'd0474371d8c5d8068ab70bfb42719c97936b18a6')
Children:
2206753e05a96ad86c2ff231f55a8d71d57edeaedd46a1144a438c234ed7d1f8259d5a7431b5efff
Parents:
6e7a34ced596a7ef94c83c0dc1f13330d700a46e
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2014-12-15 18:41:24+01:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2014-12-15 18:45:59+01:00
Message:
Fixed Printing for numstats
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/numstats.h

    r6e7a34c r80b6d36  
    104104    }
    105105
    106     inline void Print(const char * const msg = NULL) const
     106    inline void Print() const
    107107    {
    108       ::Print("%s:\n", (msg == NULL) ? "Statistic about number operations" : msg);
    109      
    110108#define _P(F) if(this->F > 0) ::Print("%21s: %13lu\n", # F, this->F)
    111109      ALL_STATISTIC(_P);       
    112110      _P(n_CancelOut);
    113111#undef _P
    114       ::PrintLn();
    115112    }
    116113
     
    128125{
    129126#ifndef HAVE_NUMSTATS
    130   WarnS("Please note that number statistic was disabled in compile-time");
     127  WarnS("Please enable NUMSTATS first!");
    131128  (void)(defaultvalue);
    132129#else
     
    139136static inline void number_stats_Print(const char * const msg = NULL)
    140137{
     138   ::Print("%s:\n", (msg == NULL) ? "Statistic about number operations" : msg);
    141139#ifndef HAVE_NUMSTATS
    142   Warn("Please note that number statistic was disabled in compile-time [message: %s]", msg);
     140  WarnS("Please enable NUMSTATS first!");
    143141#else
    144142  extern struct SNumberStatistic number_stats;
    145   number_stats.Print(msg);
     143  number_stats.Print();
    146144#endif
     145  ::PrintLn();
    147146}
    148147#endif /* NUMSTAT */
Note: See TracChangeset for help on using the changeset viewer.