On 04/28/2012 12:58 AM, Mike Frysinger wrote:
> On 64bit systems with a single personality, we see:
> count.c: In function 'call_summary':
> count.c:223:5: warning: format '%u' expects type 'unsigned int',
> but argument 3 has type 'long unsigned int'
long???
Ah, I see.
#ifndef PERSONALITY
#include
#include
#include
#define NTHD 10
static int thd_no;
static void *sub_thd(void *c) {
printf("thread created: %d\n", ++thd_no);
for (;;) getuid();
return NULL;
}
int main(int argc, char **argv) {
int i;
pthread_t thd;
for (i = 0; i <