print arch size

This commit is contained in:
roberto@sirius
2010-02-04 11:52:24 +01:00
parent d83a685d01
commit 40fb6ffa91
+6 -2
View File
@@ -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