Ignore:
Timestamp:
2006-07-10 14:48:01 (8 years ago)
Author:
Poul-Henning Kamp <phk@…>
Branches:
0.9, 2.0, 2.1, tags/varnish-2.0, tags/varnish-2.0-beta1, tags/varnish-2.0-beta1@3141, tags/varnish-2.0-beta2, tags/varnish-2.0-beta2@3221, tags/varnish-2.0-rc1, tags/varnish-2.0-rc1@3266, tags/varnish-2.0-tp1, tags/varnish-2.0-tp1@2734, tags/varnish-2.0-tp2, tags/varnish-2.0-tp2@2803, tags/varnish-2.0.1, tags/varnish-2.0.2, tags/varnish-2.0.3, tags/varnish-2.0.4, tags/varnish-2.0.5, tags/varnish-2.0.6, tags/varnish-2.1.0, tags/varnish-2.1.1, tags/varnish-2.1.2, tags/varnish-2.1.3, tags/varnish-2.1.4
Children:
4411d1
Parents:
571747
git-author:
Poul-Henning Kamp <phk@…> (2006-07-10 14:48:01)
git-committer:
Poul-Henning Kamp <phk@…> (2006-07-10 14:48:01)
Message:

Dump errno and strerror in assert

git-svn-id:  http://www.varnish-cache.org/svn/trunk@406 d4fa192b-c00b-0410-8231-f00ffab90ce4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bin/varnishd/shmlog.c

    rbf454a raace69  
    173173} 
    174174 
     175/*--------------------------------------------------------------------*/ 
     176 
     177void 
     178__assert(const char *func, const char *file, int line, const char *failedexpr) 
     179{ 
     180        (void)fprintf(stderr, 
     181             "\r\nAssertion failed: (%s)\n" 
     182             "    function %s, file %s, line %d.\n" 
     183             "    errno %d = \"%s\"\n",  
     184             failedexpr, func, file, line, errno, strerror(errno)); 
     185        abort(); 
     186        /* NOTREACHED */ 
     187} 
Note: See TracChangeset for help on using the changeset viewer.