From 40fb6ffa9134dbe54709f6d3bd31025ef3c8a419 Mon Sep 17 00:00:00 2001 From: "roberto@sirius" Date: Thu, 4 Feb 2010 11:52:24 +0100 Subject: [PATCH] print arch size --- uwsgi.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/uwsgi.c b/uwsgi.c index 9a583208..c3ec0182 100644 --- a/uwsgi.c +++ b/uwsgi.c @@ -888,17 +888,21 @@ int main(int argc, char *argv[], char *envp[]) { #endif #endif if (uwsgi.test_module == NULL) { - fprintf(stderr,"*** Starting uWSGI on [%.*s] ***\n", 24, ctime( (const time_t *) &uwsgi.start_tv.tv_sec)); + fprintf(stderr,"*** Starting uWSGI (%dbit) on [%.*s] ***\n", (sizeof(void *))*8, 24, ctime( (const time_t *) &uwsgi.start_tv.tv_sec)); } #ifndef UNBIT #ifndef ROCK_SOLID } else { - fprintf(stderr,"*** Starting uWSGI (CGI mode) on [%.*s] ***\n", 24, ctime( (const time_t *) &uwsgi.start_tv.tv_sec)); + fprintf(stderr,"*** Starting uWSGI (CGI mode) (%dbit) on [%.*s] ***\n", (sizeof(void *))*8, 24, ctime( (const time_t *) &uwsgi.start_tv.tv_sec)); } #endif #endif +#ifdef __BIG_ENDIAN__ + fprintf(stderr,"*** big endian arch detected ***\n"); +#endif + #ifdef PYTHREE fprintf(stderr,"*** Warning Python3.x support is experimental, do not use it in production environment ***\n"); #endif