68 |
if (len >= sizeof device_string) |
if (len >= sizeof device_string) |
69 |
goto fail_r; |
goto fail_r; |
70 |
|
|
71 |
DEBUG(("kinit: trying to resume from %s\n", resume_file)); |
dprintf("kinit: trying to resume from %s\n", resume_file); |
72 |
|
|
73 |
if (write(powerfd, device_string, len) != len) |
if (write(powerfd, device_string, len) != len) |
74 |
goto fail_r; |
goto fail_r; |
77 |
failure: |
failure: |
78 |
if (powerfd >= 0) |
if (powerfd >= 0) |
79 |
close(powerfd); |
close(powerfd); |
80 |
fprintf(stderr, "kinit: No resume image, doing normal boot...\n"); |
dprintf("kinit: No resume image, doing normal boot...\n"); |
81 |
return -1; |
return -1; |
82 |
|
|
83 |
fail_r: |
fail_r: |