Commit Graph

18 Commits

Author SHA1 Message Date
Vincent Sanders
faf9b9d919 Improve logging interface to reduce overhead
This reduces logging overhead by only calling the log output function
once instead of three times.

Additionally the nslog_gettime interface no longer needs to be
exported and the static function is directly inlined further reducing
function call overhead.

Finally the appending of a newline uses fputc instead of a full printf
call which is considerably more simple and further reduces overhead
time.
2015-05-29 16:18:18 +01:00
Vincent Sanders
c105738fa3 Change LOG() macro to be varadic
This changes the LOG macro to be varadic removing the need for all
callsites to have double bracketing and allows for future improvement
on how we use the logging macros.

The callsites were changed with coccinelle and the changes checked by
hand. Compile tested for several frontends but not all.

A formatting annotation has also been added which allows the compiler
to check the parameters and types passed to the logging.
2015-05-28 16:08:46 +01:00
Vincent Sanders
d5a971c281 move verbose log global into logging module and remove netsurf.h include 2014-01-29 23:20:19 +00:00
Vincent Sanders
2b4a359425 reduce call overhead on log messages 2012-11-05 15:49:23 +00:00
John Mark Bell
ff60007458 Fix build with NDEBUG defined
svn path=/trunk/netsurf/; revision=12154
2011-04-03 22:23:14 +00:00
Vincent Sanders
74ffc40e92 move logging initialisation
svn path=/trunk/netsurf/; revision=12152
2011-04-02 13:05:55 +00:00
John Mark Bell
0c7c722e23 Log to stderr
svn path=/trunk/netsurf/; revision=11983
2011-03-12 19:13:27 +00:00
Vincent Sanders
07c62407e2 Fix windows url bar
Clean up toolbar and urlbar creation and subclassing 

svn path=/trunk/netsurf/; revision=10891
2010-10-17 00:08:35 +00:00
Rob Kendrick
195c1ea319 Add seconds/microseconds wallclock time to log output, move header includes to inside guard.
svn path=/trunk/netsurf/; revision=10864
2010-10-04 19:58:10 +00:00
John Tytgat
4be25b2951 Update my e-mail address.
svn path=/trunk/netsurf/; revision=4908
2008-08-05 01:30:31 +00:00
Vincent Sanders
2f864eeecc Update all source code file headers to reflect GPL version 2 only and contain appropriate licence text
svn path=/trunk/netsurf/; revision=3486
2007-08-08 16:16:03 +00:00
Daniel Silverstone
6807b4208a Remove the netsurf/ from the include paths and rationalise use of <> vs "" in includes
NetSurf includes are now done with ""s and other system includes with <>s as C intended.
The scandeps tool has been updated to only look for ""ed includes, and to verify that the
files exist in the tree before adding them to the dependency lines. The depend rule has
therefore been augmented to make sure the autogenerated files are built before it is run.

This is untested under self-hosted RISC OS builds. All else tested and works.


svn path=/trunk/netsurf/; revision=3307
2007-05-30 22:39:54 +00:00
Daniel Silverstone
25e22eb1f5 Add a -v option to enable debug logging. Pass -v by default to the RO runimage.
svn path=/trunk/netsurf/; revision=3306
2007-05-30 22:27:58 +00:00
Michael Drake
ba23e4b693 Update project URL.
svn path=/trunk/netsurf/; revision=3073
2006-11-27 15:35:18 +00:00
John Tytgat
9295b0bcb1 [project @ 2004-07-08 20:13:35 by joty]
Log function name too when compiling with Norcroft.

svn path=/import/netsurf/; revision=1058
2004-07-08 20:13:35 +00:00
James Bursa
017fc4eb4b [project @ 2003-06-30 12:44:02 by bursa]
New file headers.

svn path=/import/netsurf/; revision=190
2003-06-30 12:44:03 +00:00
James Bursa
a4c5929a2f [project @ 2003-02-09 12:58:14 by bursa]
Reorganization and rewrite of fetch, cache, and content handling.

svn path=/import/netsurf/; revision=96
2003-02-09 12:58:15 +00:00
James Bursa
53c0e810e5 [project @ 2002-10-08 09:38:29 by bursa]
LOG(()) macro for easier debugging.

svn path=/import/netsurf/; revision=41
2002-10-08 09:38:29 +00:00