}
if (write) {
- if (read_only(addr))
- UNW_DPRINT(0, "unwind.%s: ignoring attempt to write read-only location\n");
- else {
+ if (read_only(addr)) {
+ UNW_DPRINT(0, "unwind.%s: ignoring attempt to write read-only location\n",
+ __FUNCTION__);
+ } else {
*addr = *val;
if (*nat)
*nat_addr |= nat_mask;
return -1;
}
if (write)
- if (read_only(addr))
- UNW_DPRINT(0, "unwind.%s: ignoring attempt to write read-only location\n");
- else
+ if (read_only(addr)) {
+ UNW_DPRINT(0, "unwind.%s: ignoring attempt to write read-only location\n",
+ __FUNCTION__);
+ } else
*addr = *val;
else
*val = *addr;
}
if (write)
- if (read_only(addr))
- UNW_DPRINT(0, "unwind.%s: ignoring attempt to write read-only location\n");
- else
+ if (read_only(addr)) {
+ UNW_DPRINT(0, "unwind.%s: ignoring attempt to write read-only location\n",
+ __FUNCTION__);
+ } else
*addr = *val;
else
*val = *addr;
}
if (write) {
- if (read_only(addr))
- UNW_DPRINT(0, "unwind.%s: ignoring attempt to write read-only location\n");
- else
+ if (read_only(addr)) {
+ UNW_DPRINT(0, "unwind.%s: ignoring attempt to write read-only location\n",
+ __FUNCTION__);
+ } else
*addr = *val;
} else
*val = *addr;
addr = &info->sw->pr;
if (write) {
- if (read_only(addr))
- UNW_DPRINT(0, "unwind.%s: ignoring attempt to write read-only location\n");
- else
+ if (read_only(addr)) {
+ UNW_DPRINT(0, "unwind.%s: ignoring attempt to write read-only location\n",
+ __FUNCTION__);
+ } else
*addr = *val;
} else
*val = *addr;