]> sourceware.org Git - systemtap.git/commitdiff
Standardize error messages in tapset/python[23].stp.
authorDavid Smith <dsmith@redhat.com>
Tue, 6 Dec 2016 18:47:40 +0000 (12:47 -0600)
committerDavid Smith <dsmith@redhat.com>
Tue, 6 Dec 2016 18:47:40 +0000 (12:47 -0600)
tapset/python2.stp
tapset/python3.stp

index 687b6e968a9192bb9706b8d6cfc528e0900cdc89..c3ed0298a4885dd787b0d9c3de1f5df0d87e4811 100644 (file)
@@ -207,7 +207,7 @@ private function Py2Int_AsLong:long(op:long)
 {
     if (op && @Py2Int_Check(op))
        return @Py2Int_AS_LONG(op)
-    error(sprintf("Py2Int_AsLong called on %s object at %p\n",
+    error(sprintf("Py2Int_AsLong called on %s object at %p",
                  python2_get_typename(op), @__pointer(op)))
     return -1
 }
@@ -347,7 +347,7 @@ private function Py2Long_AsLongLongAndOverflow_Big:long(v:long)
 private function Py2Long_AsLongLong:long(v:long)
 {
     if (! @Py2Long_Check(v)) {    
-       error(sprintf("Py2Long_AsLong called on %s object at %p\n",
+       error(sprintf("Py2Long_AsLong called on %s object at %p",
              python2_get_typename(v), @__pointer(v)))
        return -1
     }
@@ -453,7 +453,7 @@ private function Py2Frame_GetLineNumber:long(frame:long)
 private function Py2Tuple_GetItem:long(op:long, i:long)
 {
     if (!@Py2Tuple_Check(op)) {
-       error(sprintf("Py2Tuple_GetItem called on %s object at %p\n",
+       error(sprintf("Py2Tuple_GetItem called on %s object at %p",
                      python2_get_typename(op), @__pointer(op)))
        return 0
     }
@@ -467,7 +467,7 @@ private function Py2Tuple_GetItem:long(op:long, i:long)
 private function Py2Tuple_Repr:string(object:long)
 {
     if (!@Py2Tuple_Check(object)) {
-       error(sprintf("Py2Tuple_Repr called on %s object at %p\n",
+       error(sprintf("Py2Tuple_Repr called on %s object at %p",
                      python2_get_typename(object), @__pointer(object)))
        return ""
     }
@@ -494,7 +494,7 @@ private function Py2Tuple_Repr:string(object:long)
 private function Py2List_GetItem:long(op:long, i:long)
 {
     if (!@Py2List_Check(op)) {
-       error(sprintf("Py2List_GetItem called on %s object at %p\n",
+       error(sprintf("Py2List_GetItem called on %s object at %p",
                      python2_get_typename(op), @__pointer(op)))
         return 0
     }
@@ -508,7 +508,7 @@ private function Py2List_GetItem:long(op:long, i:long)
 private function Py2List_Repr:string(object:long)
 {
     if (!@Py2List_Check(object)) {
-       error(sprintf("Py2List_Repr called on %s object at %p\n",
+       error(sprintf("Py2List_Repr called on %s object at %p",
                      python2_get_typename(object), @__pointer(object)))
        return ""
     }
@@ -535,7 +535,7 @@ private function Py2List_Repr:string(object:long)
 private function Py2Dict_GetItem:long(op:long, key:string)
 {
     if (!@Py2Dict_Check(op)) {
-       error(sprintf("Py2Dict_GetItem called on %s object at %p\n",
+       error(sprintf("Py2Dict_GetItem called on %s object at %p",
                      python2_get_typename(op), @__pointer(op)))
         return 0
     }
@@ -562,7 +562,7 @@ private function Py2Dict_GetItem:long(op:long, key:string)
 private function Py2Dict_GetItem_FromLong:long(op:long, key:long)
 {
     if (!@Py2Dict_Check(op)) {
-       error(sprintf("Py2Dict_GetItem called on %s object at %p\n",
+       error(sprintf("Py2Dict_GetItem called on %s object at %p",
                      python2_get_typename(op), @__pointer(op)))
         return 0
     }
@@ -592,7 +592,7 @@ private function Py2Dict_GetItem_FromLong:long(op:long, key:long)
 private function Py2Dict_Repr:string(object:long)
 {
     if (!@Py2Dict_Check(object)) {
-       error(sprintf("Py2Dict_Repr called on %s object at %p\n",
+       error(sprintf("Py2Dict_Repr called on %s object at %p",
                      python2_get_typename(object), @__pointer(object)))
        return ""
     }
@@ -829,7 +829,7 @@ function python2_get_variable:string(frame:long, var:string)
     f_globals = @Py2FrameObject(frame)->f_globals
     value = Py2Dict_GetItem(f_globals, var)
     if (value == 0) {
-       error(sprintf("Python variable '%s' cannot be found\n", var))
+       error(sprintf("Python variable '%s' cannot be found", var))
        return ""
     }
     return Py2Object_Repr(value)
@@ -856,7 +856,7 @@ function python2_get_variable:string(frame:long, var:string, index:long)
     f_globals = @Py2FrameObject(frame)->f_globals
     value_obj = Py2Dict_GetItem(f_globals, var)
     if (value_obj == 0) {
-       error(sprintf("Python variable '%s' cannot be found\n", var))
+       error(sprintf("Python variable '%s' cannot be found", var))
        return ""
     }
     return Py2Object_Repr(value_obj, index)
index 2c0f9f242c37b6906f5abcf021fb0114a16e3664..9514d4cf68fdc54b2e5d0c14912f8aecb356264f 100644 (file)
@@ -387,7 +387,7 @@ private function Py3Long_AsLongLongAndOverflow_Big:long(v:long)
 private function Py3Long_AsLongLong:long(v:long)
 {
     if (! @Py3Long_Check(v)) {    
-       error(sprintf("Py3Long_AsLong called on %s object at %p\n",
+       error(sprintf("Py3Long_AsLong called on %s object at %p",
              python3_get_typename(v), v))
        return -1
     }
@@ -507,7 +507,7 @@ private function Py3Frame_GetLineNumber:long(frame:long)
 private function Py3Tuple_GetItem:long(op:long, i:long)
 {
     if (!@Py3Tuple_Check(op)) {
-       error(sprintf("Py3Tuple_GetItem called on %s object at %p\n",
+       error(sprintf("Py3Tuple_GetItem called on %s object at %p",
                      python3_get_typename(op), op))
        return 0
     }
@@ -521,7 +521,7 @@ private function Py3Tuple_GetItem:long(op:long, i:long)
 private function Py3Tuple_Repr:string(object:long)
 {
     if (!@Py3Tuple_Check(object)) {
-       error(sprintf("Py3Tuple_Repr called on %s object at %p\n",
+       error(sprintf("Py3Tuple_Repr called on %s object at %p",
                      python3_get_typename(object), object))
        return ""
     }
@@ -547,7 +547,7 @@ private function Py3Tuple_Repr:string(object:long)
 private function Py3List_GetItem:long(op:long, i:long)
 {
     if (!@Py3List_Check(op)) {
-       error(sprintf("Py3List_GetItem called on %s object at %p\n",
+       error(sprintf("Py3List_GetItem called on %s object at %p",
                      python3_get_typename(op), op))
         return 0
     }
@@ -561,7 +561,7 @@ private function Py3List_GetItem:long(op:long, i:long)
 private function Py3List_Repr:string(object:long)
 {
     if (!@Py3List_Check(object)) {
-       error(sprintf("Py3List_Repr called on %s object at %p\n",
+       error(sprintf("Py3List_Repr called on %s object at %p",
                      python3_get_typename(object), object))
        return ""
     }
@@ -613,7 +613,7 @@ private function Py3List_Repr:string(object:long)
 private function Py3Dict_GetItem:long(op:long, key:string)
 {
     if (!@Py3Dict_Check(op)) {
-       error(sprintf("Py3Dict_GetItem called on %s object at %p\n",
+       error(sprintf("Py3Dict_GetItem called on %s object at %p",
                      python3_get_typename(op), @__pointer(op)))
         return 0
     }
@@ -668,7 +668,7 @@ private function Py3Dict_GetItem:long(op:long, key:string)
 private function Py3Dict_GetItem_FromLong:long(op:long, key:long)
 {
     if (!@Py3Dict_Check(op)) {
-       error(sprintf("Py3Dict_GetItem called on %s object at %p\n",
+       error(sprintf("Py3Dict_GetItem called on %s object at %p",
                      python3_get_typename(op), @__pointer(op)))
         return 0
     }
@@ -706,7 +706,7 @@ private function Py3Dict_GetItem_FromLong:long(op:long, key:long)
 private function Py3Dict_Repr:string(object:long)
 {
     if (!@Py3Dict_Check(object)) {
-       error(sprintf("Py3Dict_Repr called on %s object at %p\n",
+       error(sprintf("Py3Dict_Repr called on %s object at %p",
                      python3_get_typename(object), @__pointer(object)))
        return ""
     }
@@ -969,7 +969,7 @@ function python3_get_variable:string(frame:long, var:string)
     f_globals = @Py3FrameObject(frame)->f_globals
     value = Py3Dict_GetItem(f_globals, var)
     if (value == 0) {
-        error(sprintf("Python variable '%s' cannot be found\n", var))
+        error(sprintf("Python variable '%s' cannot be found", var))
        return ""
     }
     return Py3Object_Repr(value)
@@ -996,7 +996,7 @@ function python3_get_variable:string(frame:long, var:string, index:long)
     f_globals = @Py3FrameObject(frame)->f_globals
     value_obj = Py3Dict_GetItem(f_globals, var)
     if (value_obj == 0) {
-       error(sprintf("Python variable '%s' cannot be found\n", var))
+       error(sprintf("Python variable '%s' cannot be found", var))
        return ""
     }
     return Py3Object_Repr(value_obj, index)
This page took 0.036859 seconds and 5 git commands to generate.