]> git.donarmstrong.com Git - lilypond.git/commitdiff
(surely_lseek): more verbosity.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Thu, 9 Jun 2005 10:45:18 +0000 (10:45 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Thu, 9 Jun 2005 10:45:18 +0000 (10:45 +0000)
ChangeLog
ttftool/ttfps.c
ttftool/util.c

index 41a0e326a7d956cfaa884f92aa0366b2156d411f..f6f55e400d047b767034986e25ebe41f0fa5d0dd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2005-06-09  Han-Wen Nienhuys  <hanwen@xs4all.nl>
 
+       * ttftool/util.c (surely_lseek): more verbosity.
+
        * lily/include/lily-proto.hh: add Context_def. This fixes FC4
        compile.
 
index 0cdc73627edc4d002d39b3d918ad0219afa5eaaf..4b0e09e26f410ec8a3ac3034939de8878f1f88a9 100644 (file)
@@ -42,7 +42,9 @@ create_type42 (const char *infile, void *out)
   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 b64aae9bc893264f2a88ac991929823178ec9d19..fa6e7b3add7e0311ea7bd083af5fb37e455be80b 100644 (file)
@@ -64,7 +64,11 @@ surely_lseek (int fildes, off_t offset, int whence)
 {
   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 @@ surely_read (int fildes, void *buf, size_t nbyte)
   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;
 }