sync:state what lib is printing the error
Signed-off-by: zhangzhangxin <zhangxin1@xfusion.com>
This commit is contained in:
parent
b8d72212d3
commit
bc35e3ac7e
41
0001-sync-state-what-lib-is-printing-the-error.patch
Normal file
41
0001-sync-state-what-lib-is-printing-the-error.patch
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
From cdc682c98369272ab72c1a26ff3cfc0f0d884c94 Mon Sep 17 00:00:00 2001
|
||||||
|
From: zhangzhangxin <zhangxin1@xfusion.com>
|
||||||
|
Date: Mon, 10 Jul 2023 11:41:25 +0800
|
||||||
|
Subject: [PATCH] sync:state what lib is printing the error
|
||||||
|
|
||||||
|
Signed-off-by: zhangzhangxin <zhangxin1@xfusion.com>
|
||||||
|
---
|
||||||
|
libspectre/spectre-gs.c | 6 +++---
|
||||||
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/libspectre/spectre-gs.c b/libspectre/spectre-gs.c
|
||||||
|
index b701942..414175a 100644
|
||||||
|
--- a/libspectre/spectre-gs.c
|
||||||
|
+++ b/libspectre/spectre-gs.c
|
||||||
|
@@ -55,12 +55,12 @@ critic_error_code (int code)
|
||||||
|
if (code <= -100) {
|
||||||
|
switch (code) {
|
||||||
|
case e_Fatal:
|
||||||
|
- fprintf (stderr, "fatal internal error %d", code);
|
||||||
|
+ fprintf (stderr, "(libspectre) ghostscript reports: fatal internal error %d", code);
|
||||||
|
return TRUE;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case e_ExecStackUnderflow:
|
||||||
|
- fprintf (stderr, "stack overflow %d", code);
|
||||||
|
+ fprintf (stderr, "(libspectre) ghostscript reports: stack overflow %d", code);
|
||||||
|
return TRUE;
|
||||||
|
break;
|
||||||
|
|
||||||
|
@@ -73,7 +73,7 @@ critic_error_code (int code)
|
||||||
|
int x = (-1) * code;
|
||||||
|
|
||||||
|
if (x < (int) (sizeof (errors) / sizeof (const char*))) {
|
||||||
|
- fprintf (stderr, "%s %d\n", errors[x], code);
|
||||||
|
+ fprintf (stderr, "(libspectre) ghostscript reports: %s %d\n", errors[x], code);
|
||||||
|
}
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
--
|
||||||
|
2.40.0.windows.1
|
||||||
|
|
||||||
@ -1,12 +1,13 @@
|
|||||||
Name: libspectre
|
Name: libspectre
|
||||||
Version: 0.2.8
|
Version: 0.2.8
|
||||||
Release: 8
|
Release: 9
|
||||||
Summary: A small library for rendering Postscript documents
|
Summary: A small library for rendering Postscript documents
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: http://libspectre.freedesktop.org
|
URL: http://libspectre.freedesktop.org
|
||||||
Source0: http://libspectre.freedesktop.org/releases/%{name}-%{version}.tar.gz
|
Source0: http://libspectre.freedesktop.org/releases/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
BuildRequires: libgs-devel
|
BuildRequires: libgs-devel
|
||||||
|
Patch0: 0001-sync-state-what-lib-is-printing-the-error.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Libspectre is a small library for rendering Postscript documents.
|
Libspectre is a small library for rendering Postscript documents.
|
||||||
@ -49,5 +50,8 @@ developing applications that use libspectre.
|
|||||||
%{_libdir}/pkgconfig/libspectre.pc
|
%{_libdir}/pkgconfig/libspectre.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jul 10 2023 zhangxin <zhangxin1@xfusion.com> - 0.2.8-9
|
||||||
|
- state what lib is printing the error
|
||||||
|
|
||||||
* Wed Nov 27 2019 Jiangping Hu <hujiangping@huawei.com> - 0.2.8-8
|
* Wed Nov 27 2019 Jiangping Hu <hujiangping@huawei.com> - 0.2.8-8
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user