Magellan Linux

Diff of /trunk/mkinitrd-magellan/klibc/usr/kinit/resume/resumelib.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1121 by niro, Sat Sep 1 22:45:15 2007 UTC revision 1122 by niro, Wed Aug 18 21:11:40 2010 UTC
# Line 68  int resume(const char *resume_file, unsi Line 68  int resume(const char *resume_file, unsi
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;
# Line 77  int resume(const char *resume_file, unsi Line 77  int resume(const char *resume_file, unsi
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:

Legend:
Removed from v.1121  
changed lines
  Added in v.1122