Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
eaa2a364
Commit
eaa2a364
authored
Dec 18, 2008
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libmach: always print 0x on hex numbers
R=r DELTA=3 (0 added, 0 deleted, 3 changed) OCL=21558 CL=21558
parent
83348f95
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
src/libmach_amd64/8db.c
src/libmach_amd64/8db.c
+6
-6
src/libmach_amd64/machdata.c
src/libmach_amd64/machdata.c
+2
-2
No files found.
src/libmach_amd64/8db.c
View file @
eaa2a364
...
...
@@ -1931,7 +1931,7 @@ immediate(Instr *ip, vlong val)
w
=
-
w
;
if
(
issymref
(
ip
,
&
s
,
w
,
val
))
{
if
(
w
)
bprint
(
ip
,
"%s+%lux(SB)"
,
s
.
name
,
w
);
bprint
(
ip
,
"%s+%
#
lux(SB)"
,
s
.
name
,
w
);
else
bprint
(
ip
,
"%s(SB)"
,
s
.
name
);
return
;
...
...
@@ -1942,7 +1942,7 @@ immediate(Instr *ip, vlong val)
if (w < 0)
w = -w;
if (w < 4096) {
bprint(ip, "%s-%lux(SB)", s.name, w);
bprint(ip, "%s-%
#
lux(SB)", s.name, w);
return;
}
}
...
...
src/libmach_amd64/machdata.c
View file @
eaa2a364
...
...
@@ -113,7 +113,7 @@ symoff(char *buf, int n, uvlong v, int space)
if
(
s
.
type
!=
't'
&&
s
.
type
!=
'T'
&&
delta
>=
4096
)
return
snprint
(
buf
,
n
,
"%llux"
,
v
);
else
if
(
delta
)
return
snprint
(
buf
,
n
,
"%s+%lux"
,
s
.
name
,
delta
);
return
snprint
(
buf
,
n
,
"%s+%
#
lux"
,
s
.
name
,
delta
);
else
return
snprint
(
buf
,
n
,
"%s"
,
s
.
name
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment