[BACK]Return to dw.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ctfconv

Diff for /src/usr.bin/ctfconv/dw.c between version 1.5 and 1.6

version 1.5, 2021/10/25 19:54:29 version 1.6, 2024/02/21 13:16:14
Line 21 
Line 21 
   
 #include <errno.h>  #include <errno.h>
 #include <stdint.h>  #include <stdint.h>
   #include <stdio.h>
 #include <stdlib.h>  #include <stdlib.h>
 #include <string.h>  #include <string.h>
   
Line 184 
Line 185 
 dw_at2name(uint64_t at)  dw_at2name(uint64_t at)
 {  {
         static const char *dw_attrs[] = { DW_AT_NAMES };          static const char *dw_attrs[] = { DW_AT_NAMES };
           static char buf[64];
   
         if (at <= nitems(dw_attrs))          if (at <= nitems(dw_attrs))
                 return dw_attrs[at - 1];                  return dw_attrs[at - 1];
Line 193 
Line 195 
         if (at == DW_AT_hi_user)          if (at == DW_AT_hi_user)
                 return "DW_AT_hi_user";                  return "DW_AT_hi_user";
   
         return NULL;          snprintf(buf, sizeof(buf), "#%llu", at);
           return buf;
 }  }
   
 const char *  const char *

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6