Displaying 1 result from an estimated 1 matches for "fail_offset".
Did you mean:
call_offset
2019 Jan 20
0
[klibc:master] resume: Write resume_offset attribute
...sume_file);
@@ -55,30 +55,50 @@ int resume(const char *resume_file, unsigned long long resume_offset)
goto failure;
}
- if ((powerfd = open("/sys/power/resume", O_WRONLY)) < 0)
- goto fail_r;
+ if ((attr_fd = open("/sys/power/resume_offset", O_WRONLY)) < 0)
+ goto fail_offset;
- len = snprintf(device_string, sizeof device_string,
- "%u:%u:%llu",
- major(resume_device), minor(resume_device),
+ len = snprintf(attr_value, sizeof attr_value,
+ "%llu",
resume_offset);
/* This should never happen */
- if (len >= s...