~ubuntu-branches/ubuntu/raring/ceph/raring

« back to all changes in this revision

Viewing changes to src/common/errno.cc

  • Committer: Package Import Robot
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2012-02-05 10:07:38 UTC
  • mfrom: (1.1.7) (0.1.11 sid)
  • Revision ID: package-import@ubuntu.com-20120205100738-00s0bxx93mamy8tk
Tags: 0.41-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
  if (err < 0)
12
12
    err = -err;
13
13
  std::ostringstream oss;
14
 
  oss << "error " << err << ": " << strerror_r(err, buf, sizeof(buf));
 
14
  oss << "(" << err << ") " << strerror_r(err, buf, sizeof(buf));
15
15
 
16
16
  return oss.str();
17
17
}