user2247118
user2247118

Reputation: 31

Changes in Xcode: format specifier %p returns <ptr> instead of hexadecimal value

I recently upgraded to Xcode7 and my output changed when using %p format-specifier. When I run the code (below):

IOLog("%s[%p]::%s()\n", getName(), this, \_\_FUNCTION\_\_);

i get:

com_MyCompany_MyDriver[< ptr>]::init()

Using Xcode6 i get:

com_MyCompany_MyDriver[0xffffff8015c49a00]::init()

Under Xcode6 I get a real address. Under Xcode7 I get 'ptr'. What changed from 6 to 7? Why does %p give such an abstract string instead of the real address?

Upvotes: 3

Views: 84

Answers (1)

geowar
geowar

Reputation: 4447

System Integrity Protection is protecting kernel addresses by replacing them with '< ptr>'.

Upvotes: 1

Related Questions