Skip to content

Commit

Permalink
better toString()
Browse files Browse the repository at this point in the history
  • Loading branch information
mbien committed Oct 15, 2010
1 parent 404428d commit 09cba45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/com/jogamp/opencl/CLContext.java
Expand Up @@ -605,7 +605,9 @@ protected static long toDeviceBitmap(Type[] deviceTypes) {
@Override
public String toString() {
return getClass().getSimpleName()+" [id: " + ID
+ " #devices: " + getDevices().length
+ ", platform: " + getPlatform().getName()
+ ", profile: " + getPlatform().getProfile()
+ ", devices: " + getDevices().length
+ "]";
}

Expand Down
2 changes: 1 addition & 1 deletion src/com/jogamp/opencl/CLMemory.java
Expand Up @@ -241,7 +241,7 @@ public int hashCode() {

@Override
public String toString() {
return getClass().getSimpleName()+" [id: " + ID+"]";
return getClass().getSimpleName()+" [id: " + ID+" buffer: "+buffer+"]";
}

/**
Expand Down

0 comments on commit 09cba45

Please sign in to comment.