~ubuntu-branches/ubuntu/lucid/aspectc++/lucid

« back to all changes in this revision

Viewing changes to Puma/src/basics/SysCall.cc

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2009-06-15 10:17:02 UTC
  • mfrom: (1.1.4 upstream) (6.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090615101702-5fpr632msovfnj67
Tags: 1.0pre4~svn.20090615-1
* New upstream release.
* don't ignore errors in the postrm script
* avoid spurious creation of empty dir ./usr/sbin/
* improve short descriptions of libpuma-doc and libpuma-dev
* bump Standards-Version to 3.8.1
* bump debhelper compat level to level 7 (latest in stable)

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
 
72
72
 
73
73
void SysCall::printerror (ErrorSink *err, const char *cmd, const char *path) {
74
 
  if (err) 
75
 
    *err << sev_fatal << "SysCall::" << cmd << "(): " << path << ": "
 
74
  if (err) {
 
75
    *err << sev_fatal << path << ": command '" << cmd << "' failed, "
76
76
         << strerror (errno) << endMessage;
 
77
  }
77
78
}
78
79
 
79
80
        
80
81
void SysCall::printerror (ErrorSink *err, const char *cmd, int fd) {
81
 
  if (err)
82
 
    *err << sev_fatal << "SysCall::" << cmd << "(): " << fd << ": " 
 
82
  if (err) {
 
83
    *err << sev_fatal << fd << ": command '" << cmd << "' failed, " 
83
84
         << strerror (errno) << endMessage;
 
85
  }
84
86
}
85
87
 
86
88