File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -219,8 +219,8 @@ _mcleanup(void)
219219 perror ("mcount: gmon.log" );
220220 return ;
221221 }
222- len = sprintf (dbuf , "[mcleanup1] kcount 0x%x ssiz %d \n" ,
223- p -> kcount , p -> kcountsize );
222+ len = sprintf (dbuf , "[mcleanup1] kcount 0x%x ssiz %zu \n" ,
223+ ( unsigned int ) ( unsigned long int ) p -> kcount , p -> kcountsize );
224224 write (log , dbuf , len );
225225#endif
226226 hdr = (struct gmonhdr * )& gmonhdr ;
@@ -243,8 +243,8 @@ _mcleanup(void)
243243 toindex = p -> tos [toindex ].link ) {
244244#ifdef DEBUG
245245 len = sprintf (dbuf ,
246- "[mcleanup2] frompc 0x%x selfpc 0x%x count %d \n" ,
247- frompc , p -> tos [toindex ].selfpc ,
246+ "[mcleanup2] frompc 0x%x selfpc 0x%x count %zu \n" ,
247+ ( unsigned int ) frompc , ( unsigned int ) p -> tos [toindex ].selfpc ,
248248 p -> tos [toindex ].count );
249249 write (log , dbuf , len );
250250#endif
You can’t perform that action at this time.
0 commit comments