Changeset 58775d30 in mainline for uspace/srv/klog/klog.c
- Timestamp:
- 2015-03-16T16:07:21Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2003739
- Parents:
- 6069061 (diff), 795e2bf (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/klog/klog.c
r6069061 r58775d30 53 53 #define NAME "klog" 54 54 55 typedef size_t __attribute__ ((aligned(1))) unaligned_size_t; 56 55 57 typedef struct { 56 58 size_t entry_len; … … 109 111 size_t offset = 0; 110 112 while (offset < len) { 111 size_t entry_len = *(( size_t *) (buffer + offset));113 size_t entry_len = *((unaligned_size_t *) (buffer + offset)); 112 114 113 115 if (offset + entry_len > len || entry_len < sizeof(log_entry_t))
Note:
See TracChangeset
for help on using the changeset viewer.