~martin-decky/helenos/rcu

« back to all changes in this revision

Viewing changes to kernel/tools/genmap.py

  • Committer: Martin Sucha
  • Date: 2011-03-22 19:55:06 UTC
  • mfrom: (888 mainline)
  • mto: (720.2.80 ext2-merge)
  • mto: This revision was merged to the branch mainline in revision 1004.
  • Revision ID: sucha14@st.fmph.uniba.sk-20110322195506-65nyzi3633naacrp
MergeĀ mainlineĀ changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
                        symbols.sort(key = key_sorter)
100
100
                        for addr, symbol in symbols:
101
101
                                value = fname + ':' + symbol
102
 
                                data = struct.pack(symtabfmt, addr + offset, value[:MAXSTRING])
 
102
                                value_bytes = value.encode('ascii')
 
103
                                data = struct.pack(symtabfmt, addr + offset, value_bytes[:MAXSTRING])
103
104
                                out.write(data)
104
105
                        
105
 
        out.write(struct.pack(symtabfmt, 0, ''))
 
106
        out.write(struct.pack(symtabfmt, 0, b''))
106
107
 
107
108
def main():
108
109
        if (len(sys.argv) != 4):