CVSROOT:        /cvsroot/lilypond
Module name:    lilypond
Branch:         
Changes by:     Han-Wen Nienhuys <[EMAIL PROTECTED]>    05/06/09 10:45:18

Modified files:
        .              : ChangeLog 
        ttftool        : ttfps.c util.c 

Log message:
        (surely_lseek): more verbosity.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/lilypond/lilypond/ChangeLog.diff?tr1=1.3746&tr2=1.3747&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/lilypond/lilypond/ttftool/ttfps.c.diff?tr1=1.6&tr2=1.7&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/lilypond/lilypond/ttftool/util.c.diff?tr1=1.7&tr2=1.8&r1=text&r2=text

Patches:
Index: lilypond/ChangeLog
diff -u lilypond/ChangeLog:1.3746 lilypond/ChangeLog:1.3747
--- lilypond/ChangeLog:1.3746   Thu Jun  9 10:26:19 2005
+++ lilypond/ChangeLog  Thu Jun  9 10:45:10 2005
@@ -1,5 +1,7 @@
 2005-06-09  Han-Wen Nienhuys  <[EMAIL PROTECTED]>
 
+       * ttftool/util.c (surely_lseek): more verbosity.
+
        * lily/include/lily-proto.hh: add Context_def. This fixes FC4
        compile.
 
Index: lilypond/ttftool/ttfps.c
diff -u lilypond/ttftool/ttfps.c:1.6 lilypond/ttftool/ttfps.c:1.7
--- lilypond/ttftool/ttfps.c:1.6        Wed Jun  8 13:07:11 2005
+++ lilypond/ttftool/ttfps.c    Thu Jun  9 10:45:18 2005
@@ -42,7 +42,9 @@
   endianness_test ();
 
   if ((fd = open (infile, O_RDONLY)) < 0)
-    syserror ("Error opening input file");
+    {
+      syserror ("Error opening input file");
+    }
 
   td = readDirectory (fd, &ot);
   if (verbosity >= 2)
Index: lilypond/ttftool/util.c
diff -u lilypond/ttftool/util.c:1.7 lilypond/ttftool/util.c:1.8
--- lilypond/ttftool/util.c:1.7 Wed Jun  8 13:07:11 2005
+++ lilypond/ttftool/util.c     Thu Jun  9 10:45:18 2005
@@ -64,7 +64,11 @@
 {
   off_t result;
   if ((result = lseek (fildes, offset, whence)) < 0)
-    syserror ("Cannot seek");
+    {
+      char s[100];
+      sprintf (s, "Cannot seek to %d %ld", whence, offset);
+      syserror (s);
+    }
   return result;
 }
 
@@ -74,7 +78,9 @@
   ssize_t n;
   if ((n = read (fildes, buf, nbyte)) < nbyte)
     {
-      syserror  ("read too little in surely_read()");
+      char s[100];
+      sprintf (s, "read too little in surely_read(), expect %d got %d", nbyte, 
n);
+      syserror  (s);
     }
   return n;
 }


_______________________________________________
Lilypond-cvs mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-cvs

Reply via email to