Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108260348
D22888.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
897 B
Referenced Files
None
Subscribers
None
D22888.diff
View Options
Index: head/sbin/camcontrol/camcontrol.c
===================================================================
--- head/sbin/camcontrol/camcontrol.c
+++ head/sbin/camcontrol/camcontrol.c
@@ -2355,7 +2355,7 @@
if (arglist & CAM_ARG_VERBOSE) {
printf("%s%d: Raw identify data:\n",
device->device_name, device->dev_unit_num);
- dump_data((void*)ident_buf, sizeof(struct ata_params));
+ dump_data((uint16_t *)ident_buf, sizeof(struct ata_params));
}
if (ident_buf->support.command1 & ATA_SUPPORT_PROTECTED) {
Index: head/sys/sys/ata.h
===================================================================
--- head/sys/sys/ata.h
+++ head/sys/sys/ata.h
@@ -311,7 +311,7 @@
/*223*/ u_int16_t transport_minor;
u_int16_t reserved224[31];
/*255*/ u_int16_t integrity;
-} __packed;
+} __packed __aligned(2);
/* ATA Dataset Management */
#define ATA_DSM_BLK_SIZE 512
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 24, 4:56 AM (19 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16077742
Default Alt Text
D22888.diff (897 B)
Attached To
Mode
D22888: Declare packed struct ata_params as 2-byte-aligned
Attached
Detach File
Event Timeline
Log In to Comment