[augeas-devel] augeas: master - * src/parser.y: do not print to stderr

David Lutterkort lutter at fedoraproject.org
Thu Oct 1 00:23:58 UTC 2009


Gitweb:        http://git.fedorahosted.org/git/augeas.git?p=augeas.git;a=commitdiff;h=0f91b235a91bfda1d0d7d4934dd349619ee08757
Commit:        0f91b235a91bfda1d0d7d4934dd349619ee08757
Parent:        22da085bfe7aa012965e807c4dbca89e19085d69
Author:        David Lutterkort <lutter at redhat.com>
AuthorDate:    Wed Sep 30 17:03:11 2009 -0700
Committer:     David Lutterkort <lutter at redhat.com>
CommitterDate: Wed Sep 30 17:20:39 2009 -0700

* src/parser.y: do not print to stderr

---
 src/parser.y |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/parser.y b/src/parser.y
index 6fee08d..4e67e0d 100644
--- a/src/parser.y
+++ b/src/parser.y
@@ -327,8 +327,7 @@ int augl_parse_file(struct augeas *aug, const char *name,
   info.ref = UINT_MAX;
   info.filename = sname;
   info.error = aug->error;
-  if (augl_init_lexer(&info, &scanner) != 0) {
-    fprintf(stderr, "file name: %s [%s]\n", sname->str, name);
+  if (augl_init_lexer(&info, &scanner) < 0) {
     augl_error(&info, term, NULL, "file not found");
     goto error;
   }
@@ -533,5 +532,5 @@ void augl_error(struct info *locp,
     info.first_line = info.last_line = 0;
     info.first_column = info.last_column = 0;
   }
-  syntax_error(&info, "%s\n", s);
+  syntax_error(&info, "%s", s);
 }




More information about the augeas-devel mailing list