From 86edbf41d1ad98b057f0e4e14bbd47eb3b6014f9 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Wed, 26 Oct 2011 00:56:27 +0000 Subject: Cleaned up many error codes. For any who is filling in error strings into lldb_private::Error objects the rules are: - short strings that don't start with a capitol letter unless the name is a class or anything else that is always capitolized - no trailing newline character - should be one line if possible Implemented a first pass at adding "--gdb-format" support to anything that accepts format with optional size/count. llvm-svn: 142999 --- lldb/source/Core/ModuleList.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'lldb/source/Core/ModuleList.cpp') diff --git a/lldb/source/Core/ModuleList.cpp b/lldb/source/Core/ModuleList.cpp index f3a2f0fbfa6..d5cf9ab4566 100644 --- a/lldb/source/Core/ModuleList.cpp +++ b/lldb/source/Core/ModuleList.cpp @@ -866,14 +866,14 @@ ModuleList::GetSharedModule if (arch.IsValid()) { if (uuid_cstr[0]) - error.SetErrorStringWithFormat("'%s' does not contain the %s architecture and UUID %s.\n", path, arch.GetArchitectureName(), uuid_cstr); + error.SetErrorStringWithFormat("'%s' does not contain the %s architecture and UUID %s", path, arch.GetArchitectureName(), uuid_cstr); else - error.SetErrorStringWithFormat("'%s' does not contain the %s architecture.\n", path, arch.GetArchitectureName()); + error.SetErrorStringWithFormat("'%s' does not contain the %s architecture.", path, arch.GetArchitectureName()); } } else { - error.SetErrorStringWithFormat("'%s' does not exist.\n", path); + error.SetErrorStringWithFormat("'%s' does not exist", path); } return error; } @@ -930,9 +930,9 @@ ModuleList::GetSharedModule if (file_spec) { if (arch.IsValid()) - error.SetErrorStringWithFormat("Unable to open %s architecture in '%s'.\n", arch.GetArchitectureName(), path); + error.SetErrorStringWithFormat("unable to open %s architecture in '%s'", arch.GetArchitectureName(), path); else - error.SetErrorStringWithFormat("Unable to open '%s'.\n", path); + error.SetErrorStringWithFormat("unable to open '%s'", path); } else { @@ -942,9 +942,9 @@ ModuleList::GetSharedModule uuid_cstr[0] = '\0'; if (uuid_cstr[0]) - error.SetErrorStringWithFormat("Cannot locate a module for UUID '%s'.\n", uuid_cstr); + error.SetErrorStringWithFormat("cannot locate a module for UUID '%s'", uuid_cstr); else - error.SetErrorStringWithFormat("Cannot locate a module.\n"); + error.SetErrorStringWithFormat("cannot locate a module"); } } } -- cgit v1.2.3