Changeset 34eb135 in mainline
- Timestamp:
- 2011-03-21T16:05:08Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e484f3b
- Parents:
- d7186cd (diff), 5287502 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/tools/genmap.py
rd7186cd r34eb135 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(): -
tools/mkfat.py
rd7186cd r34eb135 211 211 dir_entry = xstruct.create(DIR_ENTRY) 212 212 213 dir_entry.name = mangle_fname(name) 214 dir_entry.ext = mangle_ext(name) 213 dir_entry.name = mangle_fname(name).encode('ascii') 214 dir_entry.ext = mangle_ext(name).encode('ascii') 215 215 216 216 if (directory): … … 239 239 240 240 dir_entry.signature = 0x2e 241 dir_entry.name = ' '242 dir_entry.ext = ' '241 dir_entry.name = b' ' 242 dir_entry.ext = b' ' 243 243 dir_entry.attr = 0x10 244 244 … … 258 258 259 259 dir_entry.signature = [0x2e, 0x2e] 260 dir_entry.name = ' '261 dir_entry.ext = ' '260 dir_entry.name = b' ' 261 dir_entry.ext = b' ' 262 262 dir_entry.attr = 0x10 263 263 -
tools/mkhord.py
rd7186cd r34eb135 84 84 payload_size_aligned = align_up(payload_size, align) 85 85 86 header.tag = "HORD"86 header.tag = b"HORD" 87 87 header.version = 1 88 88 header.encoding = HORD_LSB -
tools/mktmpfs.py
rd7186cd r34eb135 80 80 dentry.kind = TMPFS_FILE 81 81 dentry.fname_len = len(name) 82 dentry.fname = name 82 dentry.fname = name.encode('ascii') 83 83 dentry.flen = size 84 84 … … 97 97 dentry.kind = TMPFS_DIRECTORY 98 98 dentry.fname_len = len(name) 99 dentry.fname = name 99 dentry.fname = name.encode('ascii') 100 100 101 101 outf.write(dentry.pack()) … … 122 122 123 123 header = xstruct.create(HEADER) 124 header.tag = "TMPFS"124 header.tag = b"TMPFS" 125 125 126 126 outf.write(header.pack()) -
uspace/app/bdsh/cmds/modules/bdd/bdd.c
rd7186cd r34eb135 70 70 unsigned int i, j; 71 71 devmap_handle_t handle; 72 aoff64_t offset; 72 73 uint8_t *blk; 73 74 size_t size, bytes, rows; … … 120 121 } 121 122 123 offset = ba * block_size; 124 122 125 while (size > 0) { 123 126 rc = block_read_direct(handle, ba, 1, blk); … … 133 136 134 137 for (j = 0; j < rows; j++) { 138 printf("[%06" PRIxOFF64 "] ", offset); 135 139 for (i = 0; i < BPR; i++) { 136 140 if (j * BPR + i < bytes) … … 152 156 } 153 157 } 158 offset += BPR; 154 159 putchar('\n'); 155 160 }
Note:
See TracChangeset
for help on using the changeset viewer.